Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Confusion with bibliography in html and latex #42

Closed
nougad opened this Issue · 6 comments

3 participants

@nougad

I have a document which should compile with pandoc 1.12.0.2 to html5 and latex.

For html5 I have the following options for citations:

  • metadata:

    bibliography: bibliography.bib

  • cli:

    --filter pandoc-citeproc
    --csl ./pandoc_data/din-1505-2-alphanumeric.csl

For Latex I want to have natlib so I use this options:

  • metadata:

    biblio-files: bibliography.bib

  • cli:

    --natbib
    --variable=biblio-style:alpha

This leads me to two problems:

  • First why I have to use bibliography for html and biblio-files for latex? I think this is a bug and the latex template should use bibliography variable if natbib or biblatex is enabled.

  • And why does --bibliography imply --filter pandoc-citeproc but bibliography in metadata not? This is confusing to me.

I see the point: If latex with natbib uses bibliography as well and --bibliography imply --filter pandoc-citeproc it makes no sense. Because when using --filter pandoc-citeproc it does nothing except: changing the header from References to Bibliography.

So my suggestion is:

  • Use bibliography for everything: latex+natbib, latex+citeproc, html, ...
  • If bibliography is used in metadata imply --filter pandoc-citeproc as well
  • But if --natbib or --biblatex is used, do not imply --filter pandoc-citeproc (makes no sense and changes the heading)

I'm not sure if pandoc-templates is the right repo for this issue but I think the main issue is bibliography vs biblio-files so I opened it here.

@jgm
Owner
@nougad

Ok, I see, thats not that easy. Allow bibliography and biblio-files is a good idea. But then using bibliography in metadata or biblio-files in metadata/cli everything works fine. But using bibliography in cli it changes the headline (because --filter pandoc-citeproc is used). This is a really strange behavior also. What do you think about the idea to not imply --filter pandoc-citeproc when --natbib or --biblatex is used?

@jgm
Owner
@mmirate

Wouldn't that also necessitate a --bibtex option, so that --filter pandoc-citeproc could be de-implied while still using plain BibTeX (rather than Natbib or BibLaTeX)? Or was BibTeX ever used before pandoc 1.12?

@jgm
Owner
@jgm
Owner

Closed by 5f8d796

@jgm jgm closed this
@jgm jgm referenced this issue from a commit
@jgm Revert "LaTeX template: Allow bibliography to be used in place of bib…
…lio-files."

This reverts commit 5f8d796.

I'll use a different approach, setting the biblio-files variable
in the LaTeX writer. This will also work for beamer.

See #42.
2afb079
@jrbing jrbing referenced this issue from a commit in jrbing/pandoc-templates
@jgm Revert "LaTeX template: Allow bibliography to be used in place of bib…
…lio-files."

This reverts commit 5f8d796.

I'll use a different approach, setting the biblio-files variable
in the LaTeX writer. This will also work for beamer.

See #42.
2664957
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.