steindani / pandoc-include

An include filter for Pandoc
MIT License
61 stars 20 forks source link

Doesn’t work with pandoc-citeproc #4

Open dbaynard opened 8 years ago

dbaynard commented 8 years ago

Ignoring the metadata from included files means the references aren’t included in the final document.

Inserting references

This is the case both for

See the manual for instructions on pandoc-citeproc.

Inserting bibliography

Inserting a bibliography is a separate concern. There are two options,

  1. Single combined bibliography
  2. Per-include bibliographies

There are difficulties, especially if the individual included files are to work on their own, too.

c.f. \input vs \include in LaTex.

This will remove any headers in the document with label refs, or the final header if it is the last entry in the file.

With include. run pandoc-citeproc on each included file first

Process the included files recursively with pandoc-citeproc, before including their outputs into the parent document.

(Note that pandoc-crossref must be called before pandoc-citeproc.)

dbaynard commented 8 years ago

Bibliography printing seems to work best if there’s a reference-section-title option in the metadata, rather than a heading at the end of a file.