DCsunset / pandoc-include

A pandoc filter to allow file and header inclusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include support for bibliography

Gjacquenot opened this issue · comments

Pandoc now allows native support for bibliography. However when a citation is made inside an included document, the citation is not rendered.

Is it possible to add support for bibliography ?

pandoc --citeproc --bibliography=doc.bib  main.md --filter pandoc-include -o main.html

with main.md

# Hello world

!include chap01.md

## References

::: {#refs}
:::

with chap01.md

# Chapter 1

[@MyBibliographicRef]

The pandoc command-line options are processed in order.
Therefore --citeproc and --bibliography=doc.bib should be placed after --filter pandoc-include to let it process the reference in chap01.md.

The command should be

pandoc main.md --filter pandoc-include --citeproc --bibliography=doc.bib -o main.html

Thanks for the answer.

Maybe, it is worthy to mention that option order is important in the main Readme.md and give this bibliogrpahic example?

Thanks for your suggestion. I will add it to the Readme soon.