The conversion from Latex (tex file prepared using elsarticle class) to word (docx) using pandoc is working fine however I am not getting the references at all (not within the text neither at the end of the article). I used the following code and had an error of "pandoc: Cannot decode byte '\xa8': Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream".
pandoc --citeproc input.tex --bibliography=mybiblio.bib --csl=ieee.csl -o document.docx
I am using latest version of pandoc (fresh installation two days ago). The .tex
file is working fine in terms of formatting and references. Tried the following steps found by searching but they did not work;
Using filter=pandoc-citeproc
in pandoc it asks me to use --citeproc
If I omit --citeproc
in my coding, I do not get the error (also dont get the references as well).
Jabref
coding is already set to UTF.
iconv -f utf-8 -t utf-8 -c input.tex
And I had the following error, 'iconv' is not recognized as an internal or external command, operable program or batch file.pandoc iconv -f utf-8 -t utf-8 -c input.tex
gave me the error of "unknown extension: 8"iconv
first: Trycygwin
or GnuWin32. Another way would be with Notepad++ "Encoding > Convert to UTF-8". Also, it looks like you need to recode your .bib-filepandoc -f markdown-raw_tex --citeproc input.tex --bibliography=mybiblio.bib --csl=ieee.csl -o document.docx
, I would imagine