Conversion error to MS-Word Office-Open XML / OpenDocument (pandoc)

V K sovhist at yahoo.com
Thu Nov 12 21:20:53 UTC 2020








On Thursday, November 12, 2020, 10:56:30 PM GMT+2, André Jäger <andre.jaeger at gmx.net> wrote: 








Hello,

I have LyX Version 2.3.4.2 on Ubuntu 20.04.1 LTS.

I have to export a LYX-Document to MSWord. The document is encoded with Unicode (utf8), and the converter-definition LaTEX (plain) -> MS-Word Office-Open XML is set to:

pandoc -s -f latex -o $$o -t docx $$i

That works. In order to export a bibliogrphy, I changed the converter-defitiontio to:

pandoc -s -filter pandoc-citeproc -f latex -o $$o -t docx $$i

Without having added a citation and bibliography (I did not change the document), the error-message appears: An error occurred while running: pandoc -s -filter pandoc-citeproc -f latex -o "test.docx" -t docx "test.tex" 

The document did not change, still encoded with Unicode (utf8), there is no bibliography inserted that might contain an error, and pandoc-citeproc is installed.

The same happens for an export to OpenDocument (pandoc) with converter: pandoc -s --filter pandoc-citeproc -f latex -o $$o -t odt $$i 

Does someone have an idea what do do?

Thank you, and thanks for the wonderful program. (I am new to LYX and in the beginning to work with it).

Thank you, André 



-- 
lyx-users mailing list
lyx-users at lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users




Hello.

You should indicate which style of bibliography you want to use.  So instead pandoc -s -filter pandoc-citeproc -f latex -o "test.docx" -t docx "test.tex" there should be something like that:
pandoc -s -filter pandoc-citeproc --csl zeitschrift-fur-ostmitteleuropa-forschung.csl -f latex -o "test.docx" -t docx "test.tex" File zeitschrift-fur-ostmitteleuropa-forschung.csl should be in the same directory as lyx file or you should indicate full path of the csl file. And of course, there can be whatever csl file – it depends on style you need.

Best regards,

Valdemaras


More information about the lyx-users mailing list