Closed mari-lynne closed 1 year ago
Did you specify a bibliography for the chapter? (When you knit a single chapter, then it is knitted based on the YAML header in this chapter -- does it have one, and does it include a bibliography?)
I believe it's commented out by default (you want the bibliography to be commend out for the individual chapters when you knit the entire thesis)
I.e. change this in the heading of your doc
#bibliography: bibliography/your-references.bib
to
bibliography: bibliography/your-references.bib
Hello - yes I have included it in the YAML header as such. It works with HTML and word, which makes me think it's a PDF-latex problem
I've fixed it now -- this occurred because I forgot to update the brief latex template when I revised the way the full template toggles between different citation packages.. doh! Thanks for flagging this.
See if it works if you replace your brief latex template with the content in the one I just pushed to gh
No problem - thanks for checking :) Unfortunately, it's still not rendering in PDF mode, I get the error
! Package biblatex Error: Nested citation command.
warnings() gives In normalizePath("~") : path[1]="/sbuild-nonexistent": No such file or directory
What does the YAML header in the chapter you're trying to knit look like?
Try just using pandoc for citations, i.e. remove citation_package: biblatex
in your header
Ok, I was prompted by this to make the fix that I was too lazy to do until now:
there is now only one single template.tex, which works with both single chapters and the full thesis -- can you see if it works now with the latest templates/template.tex that I've pushed?
Thank you so so much! Both deleting the biblatex line in the brief version, and the updated main version work a treat :)
Hiya,
Unfortunately when knitting to PDF and using brief_template.tex I get several errors shown below, and the references don't knit.
I double checked my .bib file which works fine in the HTML output. I have also tried modifying the order of several packages as suggested, updated my R packages, but still with no luck. I'm using TinyTeX as my latex distribution.
Thanks for any insight - I'm new to latex so apologies if I'm missing something obvious.
Warnings
Fixes Here is what I've added so far to brief_templates.tex at line 23, but with no improvement.
Session Info: