Hallo, 

 

I had similar problems of the export (Word HTML), with Lyx 1.6.8, as
described here.

 

First, I wanted to tell, that it is not bad to have both configurations: 

 

-          HTML (with elyxer) is more stable and works out of the box

-          HTML, Word (with htlatex) recognises more packages (if it works.)

 

Apparently, Htlatex recognises more packages. For example, in my tests I
found: If I have author - year - citation 

with package "natbib", then elyxer exports only numbers [1], [2],. but
htlatex exports the correct

citations (author, 2011).

 

So, I undertook the effort to configure htlatex. For my Windows system, I
found that the missing points of the configuration of htlatex are as
follows:

 

-          in the converter I need htlatex $$i "html,word" "symbol/!"
"-cvalidate" (with double quotes instead of single quotes for windows)

-          you must assure, that the program ImageMagick is installed and in
the system path (or in the PATH prefix of LyX). With the Lyx for Windows
AltInstaller this is done automatically.

-          In the LaTeX distribution the packages containing "tex4ht" must
be installed. If MikTeX is used (not texlive), then the file htlatex.bat has
to be corrected: In the last two lines, there are wrong paths.

For a standard installation, I corrected to

tex4ht %1  -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env

t4ht %1 %4 -e"C:\Program Files\MiKTeX 2.9\tex4ht\base\win32\tex4ht.env"

 

After these corrections, everything worked fine on my system. In case of
trouble, start LyX from a dos window, then the error messages can be seen. 

If there is an error with "convert.exe", then ImageMagick is not properly
installed. If there is an error "tex4ht.env not found", the paths in
htlatex.bat are incorrect. 

 

 

Finally two other remarks: 

 

- To open the document from elyxer in Word: Open in Firefox, then make a
copy with "save as", document type "website complete". This copy can
directly be opened in Word.

Also, the graphics and the .css file are copied in a suitable subdirectory.

 

- As a very easy to use converter, I found that tth ( tex to html ) is very
good. Export your document from lyx into latex, then execute "tth -e2
document.tex". 

Gives a very good html Document (similar to elyxer).

 

Regards

Reply via email to