6

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.

lyx101
  • 183
  • 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 04: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 05:00
  • @SeanAllred does pandox support word->lyx? – lyx101 Sep 29 '13 at 05: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 05: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 06:04
  • Apparently, LyxConverter features a 45 days trial period. So it probably is worth a trial. – Daniel Oct 29 '13 at 09:09
  • «lyx is much closer to word than latex» LyX actually uses LaTeX, hence whatever can be done with LyX can also be done with LaTeX. – Andrea Lazzarotto Oct 12 '15 at 23:17

2 Answers2

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.

Sean Allred
  • 27,421