summaryrefslogtreecommitdiff
path: root/data/templates/default.typst
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-04-07 08:23:32 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-04-07 08:24:47 -0700
commite89a3edf24a025d5bb0fe8c4c7a8e6e0208fa846 (patch)
treec495c5f15094583ee3900fd37838649a3167dc29 /data/templates/default.typst
parent483bfa4b7fad2e9f8f7ae9c8227255bf462a5851 (diff)
Typst writer: omit bibliography if `citations` not enabled.
With this change, the typst writer will omit the `#bibliography` command when `citations` is not enabled. (If you want to use pandoc's own `--citeproc`, you should combine it with `-t typst-citations` to disable native typst citations. Closes #8763.
Diffstat (limited to 'data/templates/default.typst')
-rw-r--r--data/templates/default.typst2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/default.typst b/data/templates/default.typst
index c04b5e40f..94a9c88fb 100644
--- a/data/templates/default.typst
+++ b/data/templates/default.typst
@@ -92,6 +92,7 @@ $if(notes)$
$notes$
]
$endif$
+$if(citations)$
$if(bibliographystyle)$
#set bibliography(style: "$bibliographystyle$")
@@ -100,6 +101,7 @@ $for(bibliography)$
#bibliography("$bibliography$")
$endfor$
+$endif$
$for(include-after)$
$include-after$