Skip to content

Commit 7d1962b

Browse files
authored
Move nocites from LaTeX preamble to body (#10465)
Closes #10461. Putting `\nocite` in the preamble works only with biblatex.
1 parent 58cc5cc commit 7d1962b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

data/templates/common.latex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,6 @@ $for(bibliography)$
257257
\addbibresource{$bibliography$}
258258
$endfor$
259259
$endif$
260-
$if(nocite-ids)$
261-
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
262-
$endif$
263260
$--
264261
$-- csquotes
265262
$--

data/templates/default.beamer

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ $if(linestretch)$
168168
$endif$
169169
$body$
170170

171+
$if(nocite-ids)$
172+
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
173+
$endif$
171174
$if(natbib)$
172175
$if(bibliography)$
173176
$if(biblio-title)$

data/templates/default.latex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ $body$
9696
$if(has-frontmatter)$
9797
\backmatter
9898
$endif$
99+
$if(nocite-ids)$
100+
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
101+
$endif$
99102
$if(natbib)$
100103
$if(bibliography)$
101104
$if(biblio-title)$

0 commit comments

Comments
 (0)