jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.6k stars 3.38k forks source link

Multiple bibliography files #2041

Closed azrdev closed 9 years ago

azrdev commented 9 years ago

I'm writing markdown, converting it to latex, and like to add multiple BibLaTeX bibliography files. Thus I added --biblatex to the command line, and removed the --filter pandoc-citeproc argument.

> pandoc --version
pandoc 1.12.3.3
...
> pandoc-citeproc --version
pandoc-citeproc 0.3.1
nkalvi commented 9 years ago

Could you please update to current version (1.32.2) and test it? I could test it if you could share some test files.

Pandoc-citeproc is at version 0.6

lierdakil commented 9 years ago

First, please update, 1.12.3.3 is more than a yead old. Second, you can use pandoc ... -V biblio-files=file1,file2 instead of --bibliography, which should work nicely in your case.

Please also understand that template variables (set with -V) and YAML metadata are two completely separate concepts. --bibliography setting both is just a compatibility hack.

lierdakil commented 9 years ago

@nkalvi 1.32.2? :laughing: typo, eh?

Latest Pandoc version is 1.13.2

nkalvi commented 9 years ago

:blush: This much Pandoc activity is intoxicating.

azrdev commented 9 years ago

@lierdakil thanks! -V biblio-files works as expected, i.e. inserts \bibliography{file1.bib,file2.bib}.

The distinction you make w.r.t. metadata blocks is new to me, cannot find it in the readme: http://johnmacfarlane.net/pandoc/README.html#extension-yaml_metadata_block only gives an example of setting author, so maybe you should make that more clear.

As for the versions: 1.13 is shipped with current Fedora 21.

lierdakil commented 9 years ago

@azrdev, see http://johnmacfarlane.net/pandoc/README.html#templates . You may also notice that README does not say anything about using --bibliography with --biblatex (although it probably should), only with pandoc-citeproc.

2015-03-29 20:26 GMT+03:00 azrdev notifications@github.com:

@lierdakil https://github.com/lierdakil thanks! -V biblio-files works as expected, i.e. inserts \bibliography{file1.bib,file2.bib}.

The distinction you make w.r.t. metadata blocks is new to me, cannot find it in the readme: http://johnmacfarlane.net/pandoc/README.html#extension-yaml_metadata_block only gives an example of setting author, so maybe you should make that more clear.

As for the versions: 1.13 is shipped with current Fedora 21 https://apps.fedoraproject.org/packages/pandoc.

— Reply to this email directly or view it on GitHub https://github.com/jgm/pandoc/issues/2041#issuecomment-87448081.

mpickering commented 9 years ago

Can this be closed? Should the documentation be updated? @lierdakil

jgm commented 9 years ago

Since --bibliography can be used multiple times (producing a list), and since in a recent commit we allowed that --bibliography would populate the biblio-files variable when --natbib or --biblatex is used, we should probably fix things so that it can handle a list.

lierdakil commented 9 years ago

I think at least "citations" section (http://pandoc.org/README.html#citations) should be updated with information on --natbib and --biblatex. At the moment it doesn't mention those. And since using --bibliography with --natbib and --biblatex is somewhat supported, "citation rendering" section (http://pandoc.org/README.html#citation-rendering) should probably be updated to reflect that as well.

jiucenglou commented 1 year ago

Since --bibliography can be used multiple times (producing a list), and since in a recent commit we allowed that --bibliography would populate the biblio-files variable when --natbib or --biblatex is used, we should probably fix things so that it can handle a list.

Could we assign a list of files to --bibliography currently ? :D