I assume you've Phyton 2.7 and Elyxer installed (they should be installed by default).
1# Go to Lyx Preferences/File Handling/File Formats: Choose "HTML (Word)"
Set active: "Document format", "Show in export menu"
Choose Short Name: "wordhtml"
Choose Extension: "html"
Set Editor and Viewer: "None" (or a program of choice)
Copier: "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o" (Without " ")
Set Output Format: "PDF (pdflatex)".
2#Switch to Entry "Converters", Choose "Lyx->HTML (MS Word)"
Set From format: "Lyx" and To format: "HTML (MS Word)"
Write in "Converter": "python -m elyxer --html --directory $$r $$i $$o" (Without " ")
Enable "Converter File Cache".
3# Now you should be able to export (File/Export/HTML (MS Word)) your document to HTML. (There is a known clash with \xdefinecolor if you have enabled "change tracking" + "show in output" and \definecolor without O_o)
4# The HTML Document can be opened by MS Word and looks quite good. There's only a minimal polishment needed with Hyperlinks and \ce environment.
The file formats settings. |
The converter handling options. |