2

I have a document with a bibliography in BibTeX and must to some post-treatment on the generated bibliography before producing the final document (I must emphasize some author names and sort the biography in some non-obvious way). I thought I could generate the text of the bibliography in markdown and deal with it from that point.

I tried to adapt what was proposed in another question (Bibtex to html/Markdown/etc., using Pandoc) :

pandoc --filter=pandoc-citeproc --standalone mybib.md -o mybib-out.md

with a mybib.md containing the following:

---
bibliography: 'mybib.bib'
nocite: '@*'
...

Bibliography
============

but the output file only contains basically the same as the input, while exporting to pdf or html generates the actual bibliography.

How can I solve my problem?

1

Try using a different markdown format, e.g: pandoc -t markdown_strict --filter=pandoc-citeproc --standalone mybib.md -o mybib-out.md The formats are listed in pandoc's documentation. The default setting is pandoc's markdown which might not generate the bibliography.

2

Pandoc-citeproc doesn't insert the references in Markdown unless you explicitly specify a div with ID refs:

---
bibliography: 'mybib.bib'
nocite: '@*'
...

Bibliography
============

::: {#refs}
:::

(This behavior is arguably a bug in pandoc-citeproc and might be worth bringing up on the pandoc-discuss mailing list.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.