Mike Meyer <[EMAIL PROTECTED]> writes: > > In <[EMAIL PROTECTED]>, David Nicol > <[EMAIL PROTECTED]> typed: > > Can someone please point me to a tool that will convert a LyX document > > to a soffice document, no matter how rough the tool is? > > When I asked this earli this month, the only thing that came up was > tex4ht. I tried it, but it didn't do a very good job for me. > > <mike
Hello, I tried it, and it worked for me... sort of. There is an explicit batch file called `oolatex' in the tex4ht distribution. It is basically a shortcut for `htlatex >filename< "xhtml,ooffice" " -coo"'. It does a pretty good job on most documents, though you may have to fiddle a little with the tex4ht.env file, since there are two variations of the `oo' section of the script. Some work in some systems, some do work in others. There are instructions in the tex4ht.env file itself. So, first, export your LyX file into LaTeX. Then install a recent tex4ht system, and run `oolatex >yourfile<'. CAVEAT: some stuff in the LaTeX preamble makes oolatex stumble. You may have to edit the LaTeX file a little to ensure oolatex will digest it. Moreover, I found the oolatex script faulty in processing the {array} environment. I think this is a serious bug, and I'm finding out if it has been fixed. But if you don't use this environment a lot, or simply ignore the error messages (typing `r 'every time TeX complains about it), it may be safe to say that the script should work. Good luck and happy LyX/OOOfing! Luis.