Skip to content

Commit

Permalink
Move nocites from LaTeX preamble to body (#10465)
Browse files Browse the repository at this point in the history
Closes #10461.

Putting `\nocite` in the preamble works only with biblatex.
  • Loading branch information
twsh authored Dec 17, 2024
1 parent 58cc5cc commit 7d1962b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions data/templates/common.latex
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,6 @@ $for(bibliography)$
\addbibresource{$bibliography$}
$endfor$
$endif$
$if(nocite-ids)$
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
$endif$
$--
$-- csquotes
$--
Expand Down
3 changes: 3 additions & 0 deletions data/templates/default.beamer
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ $if(linestretch)$
$endif$
$body$

$if(nocite-ids)$
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
$endif$
$if(natbib)$
$if(bibliography)$
$if(biblio-title)$
Expand Down
3 changes: 3 additions & 0 deletions data/templates/default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ $body$
$if(has-frontmatter)$
\backmatter
$endif$
$if(nocite-ids)$
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
$endif$
$if(natbib)$
$if(bibliography)$
$if(biblio-title)$
Expand Down

0 comments on commit 7d1962b

Please # to comment.