Open wenkokke opened 1 month ago
Please read the manual entry for --natbib
: it is not to be used together with --citeproc
.
Shouldn't that raise a warning or error?
Yes, it would make sense for us to raise an error if --natbib
or --biblatex
is used with --citeproc
.
Related to #9640.
Explain the problem. Assume the following documents:
sample.md
:sample.bib
:To illustrate the issue, let us run Pandoc with three different configurations:
harvard.yaml
yields
natbib.yaml
yields
natbib-harvard.yaml
also yields
In (1), Pandoc typesets the page reference according to Harvard citation style. In (2), Pandoc typesets the page reference according to Chicago citation style, which is the default style. In (3), Pandoc typesets the page reference according to Chicago citation style, even though Harvard citation style is specified.
The expected behaviour would be for Pandoc to typeset the references according to the given citation style. I understand that technically I am giving Pandoc conflicting instructions. Render citations according to Harvard style and delegate to the natbib package. However, there is no option not to typeset the citation notes according to the default Chicago style, even though I am asking Pandoc to delegate to natbib. Therefore, I would argue that Pandoc's behaviour is definitely incorrect in (3), but that it is unclear whether Pandoc should (a) pass any notes through to natbib unchanged, or (b) attempt to typeset the notes using whatever citation style is provided.
Pandoc version? Running Pandoc 3.2.1 on macOS 13.