Converting to HTML

Issue #140 new
Mebus created an issue

Hallo,

for a website project I would like to convert a bibtex file into formatted HTML output. So the converted output should not contain a html head and so forth. I looked through the documentation, but I could not quite figure out how to do this.

    from pybtex.database import parse_file
    from pybtex.richtext import Text, Tag

    bib_data = parse_file('bibtex.bib')
    print(bib_data.to_string('html'))

I don’t know how to convert bib_data to “Text”. Can somebody help?

Thanks

Mebus

Comments (1)

  1. Log in to comment