aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-07-30 11:24:18 +0200
committerAlbert Krewinkel <[email protected]>2025-07-30 11:59:41 +0200
commit6dae03f719b4b809a38ff7cc361be3b46447b87d (patch)
tree87b4eb6067e5dccd3f04c74e2729eadd45aad501 /data
parent4066a9d483d3aac7c56009050611342d00ce1ead (diff)
Typst writer: add native Typst support for `nocite`.
The `nocite` metadata field can now be used to supply additional citations that don't appear in the text, just as with citeproc and LaTeX's bibtex and natbib. Closes: #10680
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.typst5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/templates/default.typst b/data/templates/default.typst
index 00e1ec557..4c75fd0f4 100644
--- a/data/templates/default.typst
+++ b/data/templates/default.typst
@@ -132,6 +132,9 @@ $endif$
$body$
$if(citations)$
+$for(nocite-ids)$
+#cite(label("${it}"), form: none)
+$endfor$
$if(csl)$
#set bibliography(style: "$csl$")
@@ -141,7 +144,7 @@ $elseif(bibliographystyle)$
$endif$
$if(bibliography)$
-#bibliography($for(bibliography)$"$bibliography$"$sep$,$endfor$)
+#bibliography($for(bibliography)$"$bibliography$"$sep$,$endfor$$if(full-bibliography)$, full: true$endif$)
$endif$
$endif$
$for(include-after)$