0

I am using Lyx2.3.3. I have installed Pandoc. I reconfigured Lyx ( Tools> reconfigure). I should then be able to simply export lyx file to the MS Word Office open XML, however I get an error as shown in the next image.Lyx to Word export issue

Any suggestion?

8
  • switch the filenames.
    – naphaneal
    Dec 26, 2019 at 18:07
  • @naphaneal , I did not get your point.
    – Sabreen
    Dec 26, 2019 at 18:10
  • you're converting from a *.docx to a *.tex.
    – naphaneal
    Dec 26, 2019 at 18:11
  • @naphaneal, no the opposite, from Lyx to Word
    – Sabreen
    Dec 26, 2019 at 18:12
  • not according to the error message and the manual. in your case, the source is the *.docx and the target is the *.tex.
    – naphaneal
    Dec 26, 2019 at 18:19

1 Answer 1

2

I have found the answer at the subheading "Try exporting a LyX document" at this web-page https://wiki.lyx.org/Tips/ExportingOpenDocumentLibreofficeOpenofficeAndOfficeOpenXMLMSWordWithPandoc

If not all goes well, you will see a warning box with a message like

"Error while running pandoc -s -f latex -o $$o -t docx $$i"

That's most likely because LyX is not sending Pandoc a file with the proper encoding. For a quick fix try: Document > Settings, go to the Language section, and under Encoding select Other: Unicode (utf8). Try exporting again.

If that works now, then encoding was the problem. See the Troubleshooting section for a way to ensure that all your new LyX documents have the proper encoding setting. If you still get the warning message, see Troubleshooting below.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .