I need to convert a LaTeX document to OpenOffice -> Word in order to allow cooperation with non-LaTeX users.
I've tried two commands:
oolatex foo.tex
and
mk4ht oolatex foo.tex
In both cases tex4ht failed to produce the ODT or SWX file, but a number of temp files were produced (foo.4ct
, 4od
, 4oo
, 4tc
, foo-manifes.4of
, foo-meta.4ot
, foo-setting.4os
, foo-styles.4oy
). From my study of .env
file of TeX4ht it became obvious that those files should have been later converted into the OO
file.
Has anyone else encoutered that problem and found a solution?
Edit:
After using Lian Tze's suggestion I changed all the path in tex4ht.env
file, but still no go, the error I received now is somehow connected to java which is completely outside my league.
C:\Users\Wojtek\Documents\My Dropbox\INSiK\Raporty\Artykuł problemowy>t4ht docum
ent -cooxtpipes -coo -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate
----------------------------
t4ht.c (2009-01-31-07:34 kpathsea)
t4ht document
-cooxtpipes
-coo
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env
-cvalidate
(C:/Program Files (x86)/MiKTeX 2.8/tex4ht/base/win32/tex4ht.env)
Entering document.lg
System call: move document.4oo document.tmp
1 file(s) moved.
System return: 0
System call: java -classpath c:\Program Files (x86)\MiKTeX 2.8\tex4ht\bin\tex4h
t.jar xtpipes -i c:\Program Files (x86)\MiKTeX 2.8\tex4ht\xtpipes\ -o document.4
oo document.tmp
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Files. Program will exit.
--- Warning --- System return: 1
System call: mkdir sxw-document.dir\Pictures
System return: 0
System call: move document-settings.4os sxw-document.dir\setti
ngs.xml
1 file(s) moved.
System return: 0
System call: move document-styles.4oy sxw-document.dir\styles.xml
1 file(s) moved.
System return: 0
System call: mkdir sxw-document.dir\META-INF
System return: 0
System call: move document-manifest.4of sxw-document.dir\META-INF\manifest.xml
1 file(s) moved.
System return: 0
System call: move document-meta.4ot sxw-document.dir\meta.xml
1 file(s) moved.
System return: 0
System call: cd sxw-document.dir & zip -r -m document.zip * & cd ..
adding: META-INF/ (164 bytes security) (stored 0%)
adding: META-INF/manifest.xml (164 bytes security) (deflated 66%)
adding: meta.xml (164 bytes security) (deflated 58%)
adding: Pictures/ (164 bytes security) (stored 0%)
adding: settings.xml (164 bytes security) (deflated 46%)
adding: styles.xml (164 bytes security) (deflated 91%)
System return: 0
System call: move sxw-document.dir\document.zip document.odt
1 file(s) moved.
System return: 0
System call: del document.4od
System return: 0
System call: if exist sxw-document.dir rmdir /Q /S sxw-document.dir
System return: 0
C:\Users\Wojtek\Documents\My Dropbox\INSiK\Raporty\Artykuł problemowy>
Here is the log of the last converting operation...