aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIan Max Andolina <[email protected]>2023-11-15 11:46:18 +0800
committerGitHub <[email protected]>2023-11-14 19:46:18 -0800
commite562d23bc7e21cd7395bee2997c845b3bdfd6afd (patch)
tree61d389ffef43dfdb4686b3f580ccd8c001d2bfd7 /data
parent7db44d77b234f1922dfa5f05ac6387c5d1eaec41 (diff)
Update default.typst to support csl (#9186)
Typst now supports CSL for its native citation engine, so pandoc should use a specified `csl` style in the template, falling back to `bibliographystyle` if `csl` is not specified. https://typst.app/docs/reference/meta/bibliography/
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 7b3fd0d41..7682c5bea 100644
--- a/data/templates/default.typst
+++ b/data/templates/default.typst
@@ -83,7 +83,10 @@ $endif$
$body$
$if(citations)$
-$if(bibliographystyle)$
+$if(csl)$
+
+#set bibliography(style: "$csl$")
+$elseif(bibliographystyle)$
#set bibliography(style: "$bibliographystyle$")
$endif$