TeX - LaTeX Asked on May 18, 2021
I am trying to convert a tex file to docx using pandoc. The tex file contains a bibliography, which is in an external file, named mybib.bib, but located in the same folder of the main document. The package pandoc-citeproc has been installed with pandoc. I type in the cmd terminal:
pandoc -s main.tex bibliography=mybib.bib -o main.docx
However, the bibliography is not converted in the docx file. Do you have an idea why this happens?
Thanks in advance
You also need to tell pandoc
to use pandoc-citeproc
. For recent versions (>= 2.11) of pandoc
you need to use the option --citeproc
:
pandoc -s main.tex --citeproc --bibliography=mybib.bib -o main.docx
Elder versions use pandoc-citeproc
as a filter:
pandoc -s main.tex --filter=pandoc-citeproc --bibliography=mybib.bib -o main.docx
This is documented in pandoc's manual
Correct answer by DG' on May 18, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP