Closed andrewmwhite closed 9 years ago
Can confirm that.
> pandoc --version
pandoc 1.12.3.3
...
> pandoc-citeproc --version
pandoc-citeproc 0.3.1
Actually, this is expected behavior and not in any way a bug, according to README and changelog. It may be a reasonable enhancement though.
See also #1849, which should be fixed at the same time.
I think what makes sense for this issue and #1849 is the following:
biblio-files
with bibliography
in the latex and beamer templates.biblio-files
specific code from pandoc.hs.biblio-files
in README.-F pandoc-citeproc
only if the command line option --bibliography
is used, and not if there is a metadata bibliography
field. (Currently it just checks metadata, because the command line option sets the metadata, and the way it's currently done there's no way to tell whether the option was set by command line or in actual metadata. This can be fixed by adding a new field to Opt.@jgm I don't think that if we remove biblio-files
, --bibliography
should automatically imply -F pandoc-citeproc
anymore, since using it with --biblatex
/--natbib
would be equally feasible option, and using -V bibliography
/-M bibliography
is somewhat counterintuitive.
pandoc-citeproc
may be a reasonable default, if nothing else is specified, but should not be forced.
It's already the case that --bibliography
doesn't imply -F pandoc-citeproc
if you specify --biblatex
or --natbib
on the command line as well.
Oh, ok. I missed that.
Closed by f0817e19527dc366339c070ac814e71f6483f6f6 and c6debff1f898b0fd6a36efe8397dbfd18b84cacf
For LaTeX: bad idea to escape underscores in file names (was doing some independent testing).
\addbibresource{foo_bar.bib} % works \addbibresource{foo_bar.bib} % no data source
It appears that the 'bibio-files' template variable is not set when the 'bibliography' field is specified in YAML metadata (without '--bibliography' on the command line).
mwe.md:
mwe.bib:
Output with '--bibliography' (as expected):
Should be the same, but the '\bibliography{mwe}' line is missing:
Side note: the '\bibliography' command is deprecated (according to the biblatex manual) and has been replaced with '\addbibresource'.
Version info: