# How to make Pandoc convert latex to Word format keeping citation, caption in figures and code cells?

Using pandoc -o file.docx file.tex it returns a Word document without code, citation, and also the caption of the figures.

P.S. Regarding the citation my bibliography is included in the latex document as

\begin{thebibliography}
\bibitem{}{}
\end{thebibliography}


Is there a way to convert the to Word format keeping the code cells, citations and caption?

• Try converting the PDF? – Oleg Lobachev Aug 10 '20 at 20:59
• To get your in word, you have to use pandoc-citeproc, which needs the bibliography as a special file, e.g. .bib – DG' Aug 10 '20 at 21:01
• I fear that won't be enough. You have to create a proper .bib-file. Maybe you can use bbl2bib.pl. You should look into tex4ht as an alternative. – DG' Aug 10 '20 at 22:49
• Since manual thebibliography is not biblatex (and not compatible with biblatex either) I have removed the biblatex tag and replaced it with the more generic 'bibliographies'. – moewe Aug 11 '20 at 5:18
• @walid - pandoc --bibliography file.bib --filter pandoc-citeproc -o file.docx file.tex – DG' Aug 13 '20 at 14:43