Converting to HTML
Issue #140
new
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
There’s a simple example of converting individual entries from a bib file to html in the test suite: https://bitbucket.org/pybtex-devs/pybtex/src/6d18d7e95dd6f16ac8476bacdfd8563ec0eb937d/tests/backend_test.py#lines-308
It’s not quite exactly what you ask, but maybe it can help you further?