Files
John MacFarlane 0e86a84e33 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.
2023-12-18 23:27:40 -08:00

349 B

% 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}