Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exporting all yaml bibliographic in a pdf file using pandoc

I'm using Leo, yaml and pandoc to create a pdf. For that, my workflow is something like this:

  1. I collected all relevant items as a zotero collection
  2. I exported all of them as CSL JSON and converted it to yaml using biblio2yaml
  3. I created a Leo outline with markdown nodes and a yaml node containing all the info for I want to write and all the collected bibliography items and made a small script to traverse the outline and export the things as I want.
  4. Finally over the output file I run:

    pandoc --filter pandoc-citeproc output.markdown -o output.pdf
    

and is working pretty fine. The thing is that I would like to tell pandoc to include all the bibliography items, no matter if they are referenced with [@reference] inside the markdown text or are just collected in the embeded yaml block for bibliography. Is this possible?, if not, there is some way to script pandoc to do something like that?

PS: I used the [-@reference] trick inside the pandoc's markdown, for trying to put non explicit references of the bibliography in the exported but then I get a year in parenthesis in the exported pdf, as one would expect, so that's not the way to go.

like image 252
Offray Avatar asked Nov 19 '13 17:11

Offray


1 Answers

Eventually I'd like to add a syntax to pandoc for marking citations for inclusion in the bibliography without putting them in the text.

But for now, your best bet would be to put references for all of them in the text, and modify your CSL file so that no actual citation is printed (just the bibliography). I can't give guidance on how to do that, but I have heard of others doing it, so I know it's possible.

like image 119
John MacFarlane Avatar answered Sep 22 '22 12:09

John MacFarlane