After compiling the input file below, I tried to open the
resulting .odt file with OpenOffice.org.
It asked me about the type of the file, and after selecting one,
it said the file is corrupted.
During compilation numerous error messages appeared on the terminal, most of
which complained about non-existing files or directories.
Input file:
\documentclass{article}
\begin{document}
foo
\end{document}
Compilation command and messages on terminal:
$ mk4ht oolatex test
mk4ht (2007-11-14-18:40)
(mk4ht cfg)
/usr/share/tex4ht/htlatex test "xhtml,ooffice" "ooffice/! -cmozhtf" "-cooxtpipes -coo"
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, basque, french, german, ngerman, hungarian, loaded.
(./test.tex (/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty)
(/usr/share/texmf/tex/generic/tex4ht/tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty
--- needs --- tex4ht test ---
(./test.tmp)
l.1418 --- TeX4ht warning --- No file test.xref ---
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/latex.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/fontmath.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht [1] [2] [3] [4] [5] [6]
[7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]
[22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36]
[37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51]
[52]) (/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/article.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
No file test.aux.
[1] (./test.aux) )
Output written on test.dvi (53 pages, 60920 bytes).
Transcript written on test.log.
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, basque, french, german, ngerman, hungarian, loaded.
(./test.tex (/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty)
(/usr/share/texmf/tex/generic/tex4ht/tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty
--- needs --- tex4ht test ---
(./test.tmp) (./test.xref) (/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/latex.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/fontmath.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht [1] [2] [3] [4] [5] [6]
[7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]
[22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36]
[37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51]
[52]) (/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/article.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)) (./test.aux) [1]
(./test.aux) )
Output written on test.dvi (53 pages, 60920 bytes).
Transcript written on test.log.
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, basque, french, german, ngerman, hungarian, loaded.
(./test.tex (/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty)
(/usr/share/texmf/tex/generic/tex4ht/tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty
--- needs --- tex4ht test ---
(./test.tmp) (./test.xref) (/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/latex.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/fontmath.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht [1] [2] [3] [4] [5] [6]
[7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]
[22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36]
[37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51]
[52]) (/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/article.4ht
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/share/texmf/tex/generic/tex4ht/ooffice.4ht)
(/usr/share/texmf/tex/generic/tex4ht/unicode.4ht)
(/usr/share/texmf/tex/generic/tex4ht/mathml.4ht)
(/usr/share/texmf/tex/generic/tex4ht/ooffice-mml.4ht)) (./test.aux) [1]
(./test.aux) )
Output written on test.dvi (53 pages, 60920 bytes).
Transcript written on test.log.
----------------------------
tex4ht.c (2007-11-07-16:08 kpathsea)
tex4ht -f/test
-i/usr/share/texmf/tex4ht/ht-fonts/ooffice/!
-cmozhtf
(/usr/share/texmf/tex4ht/tex4ht.env)
(/usr/share/texmf/tex4ht/ht-fonts/ooffice/charset/unicode.4hf)
(/usr/share/texmf-texlive/fonts/tfm/public/ams/cmbsy5.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/cm/cmbsy.htf)
Searching `cmsy.htf' for `cmbsy5.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/ams/cmbsy7.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/cm/cmbsy.htf)
Searching `cmsy.htf' for `cmbsy7.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmbsy10.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/cm/cmbsy.htf)
Searching `cmsy.htf' for `cmbsy10.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmsy10.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmsy7.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmsy5.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmmi10.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmmi.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmmi7.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmmi.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmmi5.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmmi.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmr10.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr10.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmr7.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr7.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmr5.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr5.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmex10.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmex.htf)
[1] [2] [3]
[4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
[14] [15] [16] [17] [18] [19] [20] [21] [22] [23]
[24] [25] [26] [27] [28] [29] [30] [31] [32] [33]
[34] [35] [36] [37] [38] [39] [40] [41] [42] [43]
[44] [45] [46] [47] [48] [49] [50] [51] [52] [53 file test.4oo
file test.tmp
file test-settings.4os
file test-styles.4oy
file test-manifest.4of
file test-meta.4ot
file test.4od
]
Execute script `test.lg'
----------------------------
t4ht.c (2007-11-07-16:08 kpathsea)
t4ht -f/test
-cooxtpipes
-coo
(/usr/share/texmf/tex4ht/tex4ht.env)
Entering test.lg
System call: mv test.4oo test.tmp
System return: 0
System call: java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o test.4oo test.tmp
--- xtpipes error 29 --- At <sax content-handler="xtpipes.util.ScriptsManager,tex4ht.OoFilter" lexical-handler="xtpipes.util.ScriptsManagerLH" > : While parsing file file:/home/gabor/tmp/tex4ht/oo/test.tmp: org.xml.sax.SAXParseException
--- Warning --- System return: 256
System call: mkdir sxw-test.dir/Pictures
mkdir: nem lehet a következő könyvtárat létrehozni: "sxw-test.dir/Pictures": Nincs ilyen fájl vagy könyvtár
--- Warning --- System return: 256
System call: mv test-styles.4oy sxw-test.dir/styles.xml
mv: "test-styles.4oy"-t nem lehet ide áthelyezni: "sxw-test.dir/styles.xml": Nincs ilyen fájl vagy könyvtár
--- Warning --- System return: 256
System call: mkdir sxw-test.dir/META-INF
mkdir: nem lehet a következő könyvtárat létrehozni: "sxw-test.dir/META-INF": Nincs ilyen fájl vagy könyvtár
--- Warning --- System return: 256
System call: mv test-meta.4ot sxw-test.dir/meta.xml
mv: "test-meta.4ot"-t nem lehet ide áthelyezni: "sxw-test.dir/meta.xml": Nincs ilyen fájl vagy könyvtár
--- Warning --- System return: 256
System call: cd sxw-test.dir; zip -r test.odt * ; cd ..
sh: line 0: cd: sxw-test.dir: Nincs ilyen fájl vagy könyvtár
adding: oolatex.txt (deflated 87%)
adding: test.4ct (deflated 16%)
adding: test.4od (stored 0%)
adding: test.4oo (stored 0%)
adding: test.4tc (deflated 17%)
adding: test.aux (deflated 8%)
adding: test.dvi (deflated 86%)
adding: test.idv (deflated 62%)
adding: test.lg (deflated 73%)
adding: test.log (deflated 77%)
adding: test-manifest.4of (deflated 66%)
adding: test-meta.4ot (deflated 57%)
adding: test-settings.4os (deflated 45%)
adding: test-styles.4oy (deflated 91%)
adding: test.tex (deflated 22%)
adding: test.tmp (deflated 67%)
adding: test.xref (stored 0%)
System return: 0
System call: mv sxw-test.dir/test.odt .
mv: stat "sxw-test.dir/test.odt" sikertelen: Nincs ilyen fájl vagy könyvtár
--- Warning --- System return: 256
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable'), (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Versions of packages tex4ht depends on:
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libkpathsea4 2007.dfsg.1-2 TeX Live: path search library for
ii tex4ht-common 20080125-1 LaTeX and TeX for Hypertext (HTML)
ii texlive-base-bin 2007.dfsg.1-2 TeX Live: Essential binaries
tex4ht recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
> \documentclass{article}
>
> \begin{document}
> foo
> \end{document}
>
> Compilation command and messages on terminal:
> $ mk4ht oolatex test
> System call: java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o test.4oo test.tmp
> --- xtpipes error 29 --- At <sax content-handler="xtpipes.util.ScriptsManager,tex4ht.OoFilter" lexical-handler="xtpipes.util.ScriptsManagerLH" > : While parsing file file:/home/gabor/tmp/tex4ht/oo/test.tmp: org.xml.sax.SAXParseException
Can you create a new directory, compile the file in that directory,
place the directory on the web, and provide a pointer to its
address. -eitan
http://www.renyi.hu/~braung/tmp/oolatex/
The directory as a zip archive:
http://www.renyi.hu/~braung/tmp/oolatex.zip
Gábor Braun
The files seems fine, until xtpipes comes into play.
Can you copy the file
/usr/share/tex4ht/tex4ht.jar
and directory
/usr/share/texmf/tex4ht/xtpipes
to
http://www.renyi.hu/~braung/tmp/oolatex/
setup to public access.
-eitan
Done. These are the ones in the Debian package.
Gábor Braun
> > The files seems fine, until xtpipes comes into play.
> >
> > Can you copy the file
> >
> > /usr/share/tex4ht/tex4ht.jar
> >
> > and directory
> >
> > /usr/share/texmf/tex4ht/xtpipes
> >
> > to
> >
> > http://www.renyi.hu/~braung/tmp/oolatex/
> >
> > setup to public access.
>
> Done. These are the ones in the Debian package.
Well, the files work fine at my place, and I'm lost :-(
What output do you get from running the command
java -version
-eitan
On Sun, 23 Mar 2008, Braun Gábor wrote:
> > > http://www.renyi.hu/~braung/tmp/oolatex/
> > The files seems fine, until xtpipes comes into play.
On Sun, 23 Mar 2008, Eitan Gurari wrote:
> Well, the files work fine at my place, and I'm lost :-(
I will check this tomorrow on my Debian system.
Either this is because of mis-compilation of the java code by me
or missing java runtime dependencies.
Regards,
Kapil.
--
> What output do you get from running the command
>
> java -version
java version "1.5.0"
gij (GNU libgcj) version 4.3.1 20080309 (prerelease)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Gábor Braun
On Sun, 23 Mar 2008, Kapil Hari Paranjape wrote:
> I will check this tomorrow on my Debian system.
> Either this is because of mis-compilation of the java code by me
> or missing java runtime dependencies.
The same error takes place with the xtpipes.jar that is shipped with
Eitan's tar.gz.
This seems to indicate one of two problems:
1. Some missing java libraries that need to be installed
for a Java environment for XML.
2. Some problem with gij.
I suspect that the first is the real problem. I will e-mail the
Debian Java team to ask for help.
Regards,
Kapil.
--