You are not logged in.
Hi, all. Actually, the subject name says it all. Is there any tool to convert LaTeX to ODT and vice versa? I have just discovered the gummi editor and have seriosly considered using it for word processing.
Offline
pandoc may be an option for LaTeX to ODT: http://johnmacfarlane.net/pandoc/
another option would be to use markdown or reStructuredText, and convert when you need to HTML, ODT, LaTeX, ...
Depends what your need.
Offline
tex4ht will do this. You should use the Oolatex command. Notice, the project is hosted at TUG now since Eitan M. Gurari (the author) has passed away.
There are lots of WYSIWYG to LaTeX filters. Abiword has one, OOo has one and I believe there is one for Word as well.
--Rasmus
Arch x64 on Thinkpad X200s/W530
Offline
TexLive seems to have a broken version of tex4ht on arch linux. In particular it does not have Oolatex or htlatex. I have not been able to compile the sources either since it fails with some obscure ascii character errors.
Does anyone know a way to install tex4ht on Arch Linux?
Offline
Well apparently I picked up htlatex after installing the mammoth texlive-most. The latter is sucking up 1/2 GB of harddrive space lol.
Offline
tex4ht doesn't seem to work quite right in trying to convert to odt. In particular the java class file xtpipes can not be found.
System call: java -classpath //texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i //texmf-dist/tex4ht/xtpipes/ -o sensitivityanal-m83.4om sensitivityanal-m83.tmp
Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes
Caused by: java.lang.ClassNotFoundException: xtpipes
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
The only information I could find about this was posted some 2 years ago.
Offline
> pkgfile -vg '*xtpipes*'
extra/texlive-htmlxml (2009.14086-2) : /usr/share/texmf-dist/tex4ht/xtpipes/xtpipes.dtd
extra/texlive-htmlxml (2009.14086-2) : /usr/share/texmf-dist/tex4ht/xtpipes/xtpipes-default.4xt
extra/texlive-htmlxml (2009.14086-2) : /usr/share/texmf-dist/tex4ht/xtpipes/xtpipes-map.dtd
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
> pkgfile -vg '*xtpipes*' extra/texlive-htmlxml (2009.14086-2) : /usr/share/texmf-dist/tex4ht/xtpipes/xtpipes.dtd extra/texlive-htmlxml (2009.14086-2) : /usr/share/texmf-dist/tex4ht/xtpipes/xtpipes-default.4xt extra/texlive-htmlxml (2009.14086-2) : /usr/share/texmf-dist/tex4ht/xtpipes/xtpipes-map.dtd
Yeah I know xtpipes is in the jar file and it even seems to be in the correct directory according to how it's called, if I understand the syntax correctly, and yet it's still not finding this java class. Something is not quite correct in the path perhaps, maybe within the structure of the jar file itself.
By contrast I can run it under windows XP ok, but I run into another inscrutable bug with regards to it not recognizing the basic array macro.
Offline
Just to get some kind of closure on this. I've found a much better solution than oolatex and tex4ht. I didn't need my final output in ODT, I needed it in MS Word unfortunately.
The answer is latexml. It generated flawless html with embedded mathml. Moreover MS Word read the html and converted the mathml to bitmaps with nary a problem. MS Word will also write odt. I don't know if open office will read html, though it does export it.
latexml is written in perl and is somewhat slow, but seemed to work well despite not understanding any of my packages. Included all the graphics files too, which none of the other solutions did.
By the way this worked better than any of the commercial solutions I've tried. I'd love to see it as a package for Arch or for Miktex if it could be ported to windows.
Offline
Sorry to necrobump this, but I think it may be useful to say that I've made a PKGBUILD for latexml and it is here. I'm happy to hear any comments for improving it.
Satisfied users don't rant, so you'll never know how many of us there are.
Offline
pandoc does wonders, like this:
$ pandoc -s my.tex -o my.odt
Last edited by Llama (2010-11-05 18:13:54)
Offline