pappasam / latexbuild

Build output from Latex using Python and Jinja2 templating
MIT License
48 stars 10 forks source link

Bibtex #7

Closed aparrot89 closed 4 years ago

aparrot89 commented 4 years ago

Hi How to compile file with reference from a .bib files (command \bibliographystyle{stylename} and \bibliography{bibfilename}) ?

pappasam commented 4 years ago

Hmm, good question! I hadn't considered that when I wrote this library. That would require modifying the build logic in latexbuild.build.LatexBuild.run_latex. Bibtex requires running a separate executable, which isn't currently supported by this library. See this link for the relevant required commands: http://www.bibtex.org/Using/

This feature is probably outside the scope of this project. That said, if you can think of an elegant solution, I'd be happy to consider it!

aparrot89 commented 4 years ago

I want to automate the creation of data papers. I think I will you only use your render_latex_template function and do like https://tex.stackexchange.com/questions/204291/bibtex-latex-compiling. Thanks a lot for your fast answer