wbh-community / wbhdoc

This is the document creator for the wbh-pandoc-template
MIT License
2 stars 1 forks source link

Bibliography is not being added to the PDF #18

Closed polarvogel closed 1 year ago

polarvogel commented 1 year ago

Currently it seems to be impossible to produce the Bibliography / Literaturverzeichnis chapter or to use citations at all. I tried all the listed settings and I added some settings manually and I deleted many IF and ELSE lines in the wbh.tex in my local version of the container but although it should work with all the codework done in wbh.tex, defaults.yaml and metadata.yaml, it does not. I currently have no idea how to proceed or even look for the bug or the right settings, but here is my bug description:

How to reproduce: Create new project with wbhdoc -i, build project with wbhdoc -b

Expected behavior: With default settings, the literatur.bib file is generated and filled with one book. The user should be able to cite the book with \cite and the Bibliography chapter should be generated and list all the contents of literatur.bib (as biblatex is TRUE and beamer is FALSE, line 723 of the wbh.tex should be executed -> https://github.com/wbh-community/pandoc-wbh-template/blob/ed33520523bef19b3077e9e8f1023ae02af8fb09/wbh.tex#L723 ).

What happens instead: Citation is not possible and the bibliography / Literaturverzeichnis chapter is not added to the PDF.

Further details

kreativmonkey commented 1 year ago

To use this fix, you need to edit your defaults.yaml and change the citation-methode from biblatex to citeproc.

For citation in Pandoc you can use [@citekey] ore [@citekey, p. 8-12] . You shouldn't use \cite!