Biblatex does not care about pandoc options

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.

I believe biblatexoptionsis 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 ?

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.

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.

I checked because in _paper.log there's no latex warning about wrong references.

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.