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
add an option to processCitations
to put the processed references into the metadata under a key to inserted in a template later
#7969
Comments
You mean the bibliography, I assume. See the documentation: you can insert a div with id
|
I did not see this in the documentation (despite reading in it often - it is very useful!).
but I see the bibliography inserted at the end of the text and above the I would prefer to deal with the placement when filling the template (among other things to be able to check for an empty bibliography and then avoid the title). Thank you for the help! |
No, not in the template. In the document itself. |
If you want to do it in the template, you can do that by making sure that the Pandoc document you pass to |
I will try this and hope I understand the details... Thank you for the help! |
OK, looked at the code. Currently we only do |
OK, the code currently in HEAD will allow you to what I described. |
thank you - i will try. sounded a bit complicated. will take a day or two. thank you! |
Describe your proposed improvement and the problem it solves.
I use processCitations from Pandoc.Text.Citeproc from a Haskell program to produce HTML code, which is later merged with a template (using
renderTemplate
).It seems unfortunate, that the references produced with
processCitations
are immediately inserted in the text - with limited choice of the header, header style etc. It would be useful if the rendered references were available in the meta data (under a key). This would allow then to insert the references in the template using the key under a heading set in the template.Describe alternatives you've considered.
It would be possible to achieve this using
citeproc
, but breaking theprocessCitations
in an option which returns the processed citations separately and the 'full service' solution currently given would allow more flexibility in the inclusion of the processed references.Thank you for considering!
The text was updated successfully, but these errors were encountered: