5

Is there a tool or script which converts word documents to lyx. This python script works nicely but is not able to preserve the formatting styles of the text. Is there a way to solve this?

Note : I am not interested in the indirect option i.e converting to latex and then lyx, After studying the above script ,I understand that the model of lyx is much more closer to word which led the author to suggest an interesting tool from this script which I find promising.

  • I knew that and have tried all that options and I am not interested to convert to latex, only lyx. Also lyx is much closer to word than latex – lyx101 Sep 29 '13 at 4:34
  • Word's format is such a quickly moving target that I'm afraid LyX's relative simplicity is a bit of a red herring. Even so, I would try a pandoc approach. – Sean Allred Sep 29 '13 at 5:00
  • @SeanAllred does pandox support word->lyx? – lyx101 Sep 29 '13 at 5:07
  • It's a bit more complicated, I'm afraid. Word - RTF - (pandoc) - LaTeX - LyX. Note that each and every conversion step introduces the possibility of error. You may find that, as niche as LaTeX is, LyX is even more so. There simply isn't a wide enough audience to warrant the time investment to create complementary tools. (But you may have luck with LyX - ODT - Word which is supported by LyX itself.) – Sean Allred Sep 29 '13 at 5:12
  • There is a new commercial program, LyXConverter, that does exactly what you want. It converts Word directly to LyX format (format 413, which is what LyX 2.0.x uses). It has a trial so you can test it. I have not tried it because I do not have Windows, but I can say that the author is very responsive. Please post back your experience if you try it. – scottkosty Oct 29 '13 at 6:04
6

You might try LyXConverter:

http://www.editorium.com/lyxconverter.htm

It's a Microsoft Word add-in, so it translates a Word document directly into LyX, without first exporting to LaTeX or going through other gyrations. The resulting LyX document is very clean, without instances of ERT or other odd artifacts.

The program converts paragraph styles, local formatting (italics, bold, small caps), numbered and bulleted lists, pictures, tables, footnotes and endnotes, and much more.

It's a commercial program ($29.95) but has a 45-day trial period.

0

The simplest workflow I can think of is to use LyX's and Word's common ground of the OpenDocument format. If memory serves, both LyX and Word can import/export OpenDocument files. This is likely the least error-prone way to accomplish this.

As far as I know, no direct tool exists.

  • lyx does not support importing ODF, or does it? I cant see that option, although it does support export to odf – lyx101 Sep 29 '13 at 5:30
  • @lyx101 wiki.lyx.org/Tools/LyX2OpenOffice – Sean Allred Sep 29 '13 at 5:37
  • lyx already supports exporting to odf without external tools, but does not support import – lyx101 Sep 29 '13 at 5:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.