Hi Uwe,

I cannot speak about Windows because I'm on MacOs/XDarwin (that is, I use LyX for Mac (Qt), but I use htlatex and OpenOffice from XDarwin).
On my system it was actually rather trivial. I installed TeX4ht with fink, and OpenOffice from their installer. fink didn't ask to install any supplementary package, so I guess zip had been installed already (I have a full Linux-like system installed via fink). The conversion from Latex to OpenOffice took just one command:


htlatex filename "xhtml,ooffice" " -cmozhtf" " -coo"

(It took me a while to figure out the right command, because the instructions on the webpage were a bit ambiguous. I talked with the developer of TeX4ht and he has posted a bugfix already. Hurrah for open source!)

That was it. The .sxw file was fine and perfectly readable by OpenOffice. The output from OpenOffice, in turn, was read into Word with no problems. However, I don't use images, and cannot comment on that either. My main problem was how to convert into Word a LyX file that uses Jurabib for the references (and therefore requires several LaTex runs to be processed). The book "The LaTex Web companion" may also help--I checked it out and has a lot of gory details on how htlatex works, including the various passes, the configuration files, etc. But perhaps there is a problem with your installation of the package? I can send you my file if you'd like to test it on your system.


Best,

Stefano


On Oct 14, 2004, at 2:45 PM, Uwe St�hr wrote:

Stefano Franchi wrote:

Thanks so much to everyone who helped me figure out how to go from LyX to Word. The key hint was to use htlatex to convert into OpenOffice and then export from OpenOffice to Microsoft word. Works beautifully and almost out of the box

How did you manage this? I tried extensively to convert LaTeX files via htlatex/oolatex without success.


TeX4ht doesn't want hyperref commands. It also don't accept cmyk-colors.
But deleting these stuff does't help, TeX4ht hangs up on inserted pdf figures. If I delete them, oolatex runs without errors but wants at the end a program "zip.exe" to zip the .xml files into .sxw (OOo writer format).
I copied the windows compiled "zip" from the unix tools into a system folder and then also the zipping worked.
But the resulting .sxw file can't be opened by OOo 1.1.3 due to format errors in the file content.xml. That means the conversion failed.


I tried three different LaTeX documents with and without figures and all couldn't be converted, even the conversion of my very short curriculum vitae failed.

regards Uwe

__________________________________________________
Stefano Franchi
Department of Philosophy                  Ph:  (64) 9 373-7599 x83940
University Of Auckland                  Fax: (64) 9 373-7408
Private Bag 92019                               [EMAIL PROTECTED]
Auckland
New Zealand                     



Reply via email to