You are not logged in.

#1 2009-11-03 19:50:03

ilembitov
Member
Registered: 2008-10-07
Posts: 124

Looking for a tool to convert LaTeX to ODT

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

#2 2009-11-03 20:04:42

boulde
Member
Registered: 2009-10-05
Posts: 41

Re: Looking for a tool to convert LaTeX to ODT

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

#3 2009-11-03 20:14:42

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: Looking for a tool to convert LaTeX to ODT

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

#4 2009-11-26 16:14:16

SevenThunders
Member
Registered: 2009-10-15
Posts: 22

Re: Looking for a tool to convert LaTeX to ODT

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

#5 2009-11-26 16:30:06

SevenThunders
Member
Registered: 2009-10-15
Posts: 22

Re: Looking for a tool to convert LaTeX to ODT

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

#6 2009-11-26 18:20:24

SevenThunders
Member
Registered: 2009-10-15
Posts: 22

Re: Looking for a tool to convert LaTeX to ODT

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

#7 2009-11-26 20:18:43

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Looking for a tool to convert LaTeX to ODT

> 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

#8 2009-11-27 05:44:30

SevenThunders
Member
Registered: 2009-10-15
Posts: 22

Re: Looking for a tool to convert LaTeX to ODT

fsckd wrote:
> 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

#9 2009-11-29 06:47:44

SevenThunders
Member
Registered: 2009-10-15
Posts: 22

Re: Looking for a tool to convert LaTeX to ODT

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.

http://dlmf.nist.gov/LaTeXML/

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

#10 2010-04-08 00:31:16

denisfalqueto
Member
From: ES, Brazil
Registered: 2006-03-24
Posts: 197

Re: Looking for a tool to convert LaTeX to ODT

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

#11 2010-11-05 18:11:39

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Looking for a tool to convert LaTeX to ODT

pandoc does wonders, like this:

$ pandoc -s my.tex -o my.odt

Last edited by Llama (2010-11-05 18:13:54)

Offline

Board footer

Powered by FluxBB