mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-22 08:16:30 +00:00
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.
349 B
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}