[tex-live] converting LaTeX to OpenOffice

George N. White III gnwiii at gmail.com
Sun Oct 24 21:29:35 CEST 2010


On Thu, Oct 21, 2010 at 4:13 PM,  <rpvoland at spamcop.net> wrote:

> tex4ht and mk4ht have not yet produced an openoffice document for me.  I
> can use TeXEdit just fine on the same articles to produce PDF.
>
> I am using TeXLive 2010 in M$-Windows XPSP3.  I use pdflatex to typeset
> in TeXEdit, but used the commandline for tex4ht as indicated below.
>
>
> To test I start with a very simple TeX document called hello.tex.
>
> ---------
> \documentclass{article}
> \begin{document}
> Hello, world!
> \end{document}
> ---------
>
> I execute from the M$-Windows command line:
> latex hello
> tex4th hello
> mk4ht oolatex hello
>
> Then, the directory contains:
>
>
> 10/21/2010  01:44 PM    <DIR>          .
> 10/21/2010  01:44 PM    <DIR>          ..
> 10/21/2010  01:43 PM               782 hello-manifest.4of
> 10/21/2010  01:43 PM               914 hello-meta.4ot
> 10/21/2010  01:43 PM               403 hello-settings.4os
> 10/21/2010  01:43 PM            43,796 hello-styles.4oy
> 10/21/2010  01:43 PM                83 hello.4ct
> 10/21/2010  01:43 PM                 0 hello.4od
> 10/21/2010  01:43 PM             2,877 hello.4oo
> 10/21/2010  01:43 PM                76 hello.4tc
> 10/21/2010  01:43 PM                52 hello.aux
> 10/21/2010  01:43 PM            64,700 hello.dvi
> 10/21/2010  01:43 PM                62 hello.html
> 10/21/2010  01:43 PM               989 hello.idv
> 10/21/2010  01:43 PM               723 hello.lg
> 10/21/2010  01:43 PM             9,498 hello.log
> 10/21/2010  01:41 PM                72 hello.tex
> 10/21/2010  01:43 PM                51 hello.tmp
> 10/21/2010  01:43 PM                34 hello.xref
>              18 File(s)        125,112 bytes
>               2 Dir(s)  455,772,909,568 bytes free
>
>
>
>
> I don't see anything in that directory that OpenOffice can open.  What
> am I doing wrong?  Do I need to edit any configuration files?

I suspect something is missing in Windows.  Using "mk4ht oolatex sample2e"
in linux (Ubuntu 10.04 amd64) with TL2010 I get a sample2e.odt that opens
in oowriter.   There are some minor issues with the layout, but in general the
result is reasonable.

Under linux there are many lines with "System call: " using mkdir, mv,
cp, and java,
all indicating "System return: 0".

-- 
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia



More information about the tex-live mailing list