diff options
| author | Albert Krewinkel <[email protected]> | 2025-07-30 11:24:18 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2025-07-30 11:59:41 +0200 |
| commit | 6dae03f719b4b809a38ff7cc361be3b46447b87d (patch) | |
| tree | 87b4eb6067e5dccd3f04c74e2729eadd45aad501 /data | |
| parent | 4066a9d483d3aac7c56009050611342d00ce1ead (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.typst | 5 |
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)$ |
