summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-02-12 19:59:53 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2024-02-12 20:01:44 -0800
commitaa00714ba476c8558eb897003fe69009a02b0171 (patch)
treef6215364b9a7246942b3423779ca0b4866b77241 /test
parent758ff050b28d18c3830c85f34c1538897fd7af9b (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/command/9452.md19
1 files changed, 19 insertions, 0 deletions
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(<something2024>, form: "prose") says blah.
+
+Here is a sentence @something2024.
+
+With supplement @something2024[p.~3];.
+
+And just the year #cite(<something2024>, form: "year");.
+
+```