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

Bib-place: control the placement of a citeproc bibliography in a Pandoc template #163

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

jdutant
Copy link
Contributor

@jdutant jdutant commented Feb 13, 2021

Useful to place something between the end of text and the bibliography when using citeproc. The filter places any citeproc generated bibliography Div (and its immediately preceding Header, if any) in a metadata variable calledreferencesblock, that can then be printed anywhere in a custom template. Since the entire Div is passed on, any formating pandoc/citeproc applies to it for various outputs is preserved.

The filter does not affect biblatex / natbib outputs, so it can be used with a custom template that caters for all bibliography engines.

Works in LaTeX and HTML. Issues:
- doesn't preserve the classes and attributes of the DIV "refs"
- need to customize the output on hanging and spacing
- 'csl-ref' isn't usable in the template
- put the formatting commands in a global variable
Modified the filter so that both the bibliography and the heading that immediately precedes it (if any) are placed in a metadata element.
@jdutant
Copy link
Contributor Author

jdutant commented Mar 19, 2021

In the first version only the Div with identifierrefs was captured. But this may be preceded by a header. In the new version (d7b7434) the filter captures both the references and whatever heading immediately precedes them.

@jdutant jdutant changed the title Bibliography place: control the placement of a citeproc bibliography in a Pandoc template Bib-place: control the placement of a citeproc bibliography in a Pandoc template Mar 19, 2021
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

Successfully merging this pull request may close these issues.

1 participant