Closed
Description
Pandoc with --natbib
swallows locators in its output.
Create a file named sample.md
with the following contents:
We all love the famous proof by @BenjaminHornigold [p. 42].
But is it real?
No. Probably not.
Run the following command:
pandoc sample.md --natbib -t latex
The expected output is:
We all love the famous proof by \citet[p. 42]{BenjaminHornigold}. But is it
real? No.~Probably not.
The actual output is:
We all love the famous proof by \citet[42]{BenjaminHornigold}. But is it
real? No.~Probably not.
It's possible that Pandoc applies default the Chicago style to when formatting locators.
However, passing --csl
with an alternative style, such as Harvard, does not affect the output.
Pandoc version?
I'm running Pandoc 3.2.1 on macOS 13.
pandoc 3.2.1
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/keri/.local/share/pandoc
Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.