From e562d23bc7e21cd7395bee2997c845b3bdfd6afd Mon Sep 17 00:00:00 2001 From: Ian Max Andolina Date: Wed, 15 Nov 2023 11:46:18 +0800 Subject: 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/ --- data/templates/default.typst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data') 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$ -- cgit v1.2.3