Skip to content

Why does render fail for a book with an empty list of references? #11785

Answered by mcanouil
bergsmat asked this question in Q&A
Discussion options

You must be logged in to vote

Because using the default bibliography method it means you are building an empty environment which LaTeX does not like here.

\begin{CSLReferences}{0}{1}
\end{CSLReferences}

(Note that it is weird to include a bibliography, ask to have a bibliography, but put nothing in it.)

Including the nocite command to include all references does work, because it adds an item in the environment (if your bibliography file actually contains something).

nocite: |
  @*

You can also change the bibliography method for LaTeX/PDF:

format:
  pdf: 
    cite-method: biblatex

See the documentation: https://quarto.org/docs/authoring/citations.html

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mcanouil
Comment options

mcanouil Jan 3, 2025
Collaborator

@mcanouil
Comment options

mcanouil Jan 3, 2025
Collaborator

@bergsmat
Comment options

Answer selected by bergsmat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants