From aa00714ba476c8558eb897003fe69009a02b0171 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 12 Feb 2024 19:59:53 -0800 Subject: Typst writer: improve citation support. Emit `form: "prose"` or `form: "year"` qualifiers if the citation is author-in-text or suppress-author. Strip initial comma from suffix, since typst will add an extra one. Closes #9452. --- test/command/9452.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/command/9452.md (limited to 'test/command') diff --git a/test/command/9452.md b/test/command/9452.md new file mode 100644 index 000000000..2d89921b9 --- /dev/null +++ b/test/command/9452.md @@ -0,0 +1,19 @@ +``` +% pandoc -t typst +@something2024 says blah. + +Here is a sentence [@something2024]. + +With supplement [@something2024, p. 3]. + +And just the year [-@something2024]. +^D +#cite(, form: "prose") says blah. + +Here is a sentence @something2024. + +With supplement @something2024[p.~3];. + +And just the year #cite(, form: "year");. + +``` -- cgit v1.2.3