summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-12-18 23:27:40 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2023-12-18 23:27:40 -0800
commit0e86a84e3323980dd8a0071d6ad901179cdc4a35 (patch)
treed4c8e47b0efa8b9c90851de664be293c270a2bdd /test
parent2f6a66feb149753e5298e2acb795196f1cc8b821 (diff)
LaTeX writer: omit superfluous page locator label...
when used with `--natbib` or `--biblatex`. These will treat a bare number as a page locator, and they will be able to localize it. We borrow the code for stripping the locator label from the suffix from Citeproc code. Note that the recognition of the locator label is locale-sensitive; if `lang` is `de`, then `S. 33` is a page reference, and `p. 33` is not! Closes #9275.
Diffstat (limited to 'test')
-rw-r--r--test/command/9275.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/command/9275.md b/test/command/9275.md
new file mode 100644
index 000000000..c76886624
--- /dev/null
+++ b/test/command/9275.md
@@ -0,0 +1,18 @@
+```
+% pandoc -t latex --biblatex
+[@scott2000, p. 33]
+[@scott2000, pp. 33-34 and elsewhere; @scott2001, ch. 4]
+^D
+\autocite[33]{scott2000} \autocites[33-34 and
+elsewhere]{scott2000}[ch.~4]{scott2001}
+
+```
+
+```
+% pandoc -t latex --biblatex -Mlang=de
+[@scott2000, p. 33]
+[@scott2000, S. 33]
+^D
+\autocite[p.~33]{scott2000} \autocite[33]{scott2000}
+
+```