adnion
February 27, 2021, 12:55am
1
Biblatex works because the style changes when I add citation_package: biblatex
. The problem is that biblatexoptions have no effect.
Only the biblio-style option works.
I also tried xelatex, pdflatex and lualatex.
output:
bookdown::pdf_book:
latex_engine: xelatex
citation_package: biblatex
biblatexoptions: [backend=biber, style=authoryear,citestyle=authoryear]
Can I pass these options as commandline parameters?
Is the following warning dangerous? Bookdown can not run latex multiple times.
Warning message:
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please rerun LaTeX.
cderv
February 27, 2021, 4:44pm
2
I believe biblatexoptions
is a Pandoc variable, and not an argument of bookdown::pdf_book
You should just change the indentation in the YAML
output:
bookdown::pdf_book:
latex_engine: xelatex
citation_package: biblatex
biblatexoptions: [backend=biber, style=authoryear,citestyle=authoryear]
Some details about this: 3.3 PDF document | R Markdown: The Definitive Guide
Have you tried that already ?
adnion
February 27, 2021, 5:30pm
3
I tried biblatexoptions before at the top level but got an error.
Now I tried it again and this time I used fewer options. It works!
Before I ask a question I always read the bookdown and rmarkdown online documentation.
Thank you again!
What about this warning? With plain latex it's easy to solve but with bookdown?
Warning message:
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please rerun LaTeX.
preamble.tex
does not work for things like \DeclareNameAlias{author}{last-first}
To edit the style I have to create my own I guess.
cderv
March 1, 2021, 10:05am
4
Usually this means that LaTeX can't find a label that matches one of the reference commands. Did you check that ? Sometimes it is just misspelled.
adnion
March 1, 2021, 11:26am
5
I checked because in _paper.log there's no latex warning about wrong references.
system
Closed
March 8, 2021, 11:26am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.