Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn’t work with pandoc-citeproc #4

Open
dbaynard opened this issue Aug 11, 2016 · 1 comment
Open

Doesn’t work with pandoc-citeproc #4

dbaynard opened this issue Aug 11, 2016 · 1 comment

Comments

@dbaynard
Copy link

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

Inserting references

This is the case both for

  • Explicit references
  • A reference to a bibliography

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.

  • pandoc-include needs to handle the reference-section-title field somehow. Likewise, if the last part of a document is a section header (which pandoc-citeproc will treat as a
  • If an header element is present with an id of refs the corresponding section will be used for the bibliography; multiple bibliographies are unlikely to work in this case.

Recommendations

Introduce a class input for including a file and merging displayed bibliographies

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant