Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tex4ht problems

226 views
Skip to first unread message

Turgut Durduran

unread,
Feb 19, 2008, 12:51:33 PM2/19/08
to

I am trying to use tex4ht to convert, what I think is a relatively simple,
LaTeX document to either open document format, or to html that I would
later open in OpenOffice and save as a MS-Word file , or to a usable xml
format that I would use "xmlto" to convert to something else or view in
firefox.

I am using text4ht from Ubuntu Gutsy Gibbon repositories. Nothing
customized.

The files I am using are here:
http://www.stwing.upenn.edu/~durduran/tmp/distr/

[XML]
I use:

/usr/share/tex4ht/mzlatex forconversion021808.tex "html,mathml-"

The output is broken -- Firefox can't open it with the following error.
Putting mathml or not does not matter. Xmlto also complains about broken
xml.

--
XML Parsing Error: not well-formed
Location: file:///forconversion021808.xml
Line Number 45, Column 25:class="MathClass-close">
------------------------^


All the outputs are here:


[html]
I use
/usr/share/tex4ht/htlatex forconversion021808.tex

This one produces a reasonable html file, but with some major caveats:
(1) most text is bolded.
(2) references are listed but appear as: "ø:mbox:1,ø:mbox:2" instead of
supersciprt 1,2 etc.

All the outputs are here:
http://www.stwing.upenn.edu/~durduran/tmp/distr/outputs/htlatex/

[odt]
I use
/usr/share/tex4ht/oolatex forconversion021808.tex

It has some errors as you can see in the outputs below, and OpenOffice
prompts for a selection of filters and can not open the file no matter
what I choose from the list.

All the outputs are here:
http://www.stwing.upenn.edu/~durduran/tmp/distr/outputs/oolatex/


I have followed instructions below and tried to generate a docbook or
other things, but I did not succeed with anything.

http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn-commands.html


For what it is worth, this conversion is reasonably good with "tTh" but
somehow causes OpenOffice to MS-Word conversion to break -- the .doc file
can not be opened in MS-Word properly. If I take the html file, open in
MS-Word directly and then save it as .doc, it works fine. However, (1) I
do not want to have to deal with MS-Word myself, (2) tex4ht gives a lot
more control, many more options and seem to follow various style files
more closely, so I would rather get that working.

Any suggestions would be very appreciated.

tia,

Turgut

durduran{at}mail{dot}sas{dot}upenn{dot}edu


Dan

unread,
Feb 19, 2008, 4:57:31 PM2/19/08
to
On Feb 19, 11:51 am, Turgut Durduran <u...@ugdc.org> wrote:
> I am trying to use tex4ht to convert, what I think is a relatively simple,
> LaTeX document to either open document format, or to html that I would
> later open in OpenOffice and save as a MS-Word file , or to a usable xml
> format that I would use "xmlto" to convert to something else or view in
> firefox.
>
[...]

> [html]
> I use
> /usr/share/tex4ht/htlatex forconversion021808.tex
>
> This one produces a reasonable html file, but with some major caveats:
> (1) most text is bolded.

Well, I can help here. It is bloded because you write in your file:
\bf{Fake title here}
Note that \bf is a switch that changes everything that follows
to bold unless costrained by a group. If you _must_ use \bf, it
should be inside the grouping.
{\bf Fake title here}
A better approach is the \textbf command, which _does_ take
an argument:
\textbf{Fake title here}

[I wonder where you got the file strokeadditional.sty, which contains
some astonishing code. Not wrong, really, but very odd ways to
go about doing things. I wouldn't be a bit surprised if this
contributed
to problems with tex4ht, though I have no way of being sure of that.]

> (2) references are listed but appear as: "ø:mbox:1,ø:mbox:2" instead of
> supersciprt 1,2 etc.

The code in natbib.4ht seems incorrect. There is at least one
command containing instances of the ":' character where it
needs to have category 12 and other instances where it needs
category 11. This is normally impossible in a single definition.
This certainly seems to be a bug. I would patch it as below,
but one could just replace several instances of \o:mbox: with
\csname o:mbox:\endcsname. Of course it is up to Eitan Gurari
how he wants to do it

--- natbib.4ht.ori Sun Jul 08 21:11:53 2007
+++ natbib.4ht.new Tue Feb 19 15:49:55 2008
@@ -36,11 +36,13 @@
\def\AnchorLabel{\bib:anc}}
\def\nb:link#1{\Protect\Link{bibitem#1}{}#1\Protect\EndLink}
\catcode`\:12
+ \def\@for@NAT@cite@list{\@for\@citeb:=\NAT@cite@list\do}
+\catcode`\:11
\def\NAT@citexnum[#1][#2]#3{%
\NAT@sort@cites{#3}%
\let\@citea\@empty
\@cite{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty
- \@for\@citeb:=\NAT@cite@list\do
+ \@for@NAT@cite@list
{\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
\@ifundefined{b@\@citeb\@extra@b@citeb}{%
@@ -112,7 +114,6 @@
\ifNAT@swa\else\ifnum\NAT@ctype=0\if\relax#2\relax\else
\NAT@cmt\ #2\fi \NAT@@close\fi\fi}{#1}{#2}}
\let\@citex\NAT@citexnum
-\catcode`\:11

\else
\def\hyper@natlinkstart#1{%


Dan

Eitan M Gurari

unread,
Feb 21, 2008, 5:02:13 PM2/21/08
to

>LaTeX document to either open document format, or to html that I would

>I am using text4ht from Ubuntu Gutsy Gibbon repositories. Nothing

>customized.
>
>The files I am using are here:
>http://www.stwing.upenn.edu/~durduran/tmp/distr/

>The output is broken -- Firefox can't open it with the following error.

Try upgrading the tex4ht instalation with the files from

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html


>(2) references are listed but appear as: "ø:mbox:1,ø:mbox:2" instead of
>supersciprt 1,2 etc.

I modified the bugfixes distribution to take care of the problem along the
approach suggested by Dan (thanks Dan!).

-eitan


Turgut Durduran

unread,
Feb 28, 2008, 5:31:52 PM2/28/08
to

I thank Dan and Eitan for their help.

Eitan, under the instructions for an "upgrade" (which I assume bugfixes
should be applied as such?), it says:

"[Invocation Scripts] Find where htlatex resides (e.g., \u2018which
htlatex\u2019). Save the files htlatex, httex, httexi, and htcontext
elsewhere and get new scripts from
bin/linux/
for a replacement."


but there is no such thing in
http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/tex4ht-1.0.2008_02_26_0908.tar.gz

should it read as bin/unix instead? (I tried that, seems fine)

I am checking if this fixed my problem yet.


Eitan M Gurari

unread,
Feb 28, 2008, 6:01:33 PM2/28/08
to
>>>(2) references are listed but appear as: "ø:mbox:1,ø:mbox:2" instead of
>>>supersciprt 1,2 etc.
>>
>> I modified the bugfixes distribution to take care of the problem along the
>> approach suggested by Dan (thanks Dan!).

>Eitan, under the instructions for an "upgrade" (which I assume bugfixes

>should be applied as such?), it says:
>
>"[Invocation Scripts] Find where htlatex resides (e.g., \u2018which
>htlatex\u2019). Save the files htlatex, httex, httexi, and htcontext
>elsewhere and get new scripts from
>bin/linux/
>for a replacement."
>
>
> but there is no such thing in
>http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/tex4ht-1.0.2008_02_26_0908.tar.gz
>
>should it read as bin/unix instead? (I tried that, seems fine)

I believe you are right. (I made some changes in the directory name a
couple of months ago which still have some rough edges. I'll try to
clear them in a few weeks.)

>I am checking if this fixed my problem yet.

Did it? The related fixes were in the *.4ht files.

-eitan


Turgut Durduran

unread,
Feb 28, 2008, 6:04:34 PM2/28/08
to
On 2008-02-28, Turgut Durduran <ug...@ugdc.org> wrote:
>
> I thank Dan and Eitan for their help.
>
> Eitan, under the instructions for an "upgrade" (which I assume bugfixes
> should be applied as such?), it says:
>
> "[Invocation Scripts] Find where htlatex resides (e.g., \u2018which
> htlatex\u2019). Save the files htlatex, httex, httexi, and htcontext
> elsewhere and get new scripts from
> bin/linux/
> for a replacement."
>
>
> but there is no such thing in
> http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/tex4ht-1.0.2008_02_26_0908.tar.gz
>
> should it read as bin/unix instead? (I tried that, seems fine)
>
> I am checking if this fixed my problem yet.
>
>

Following up on myself.

[HTML]

The problem I mentioned:

"references are listed but appear as: "<F8>:mbox:1,<F8>:mbox:2" instead of
supersciprt 1,2 etc"

is gone. But references are listed by their bibtex tag:

klitzing:qhe1. von Klitzing K, Dorda G, Pepper M. New method for high
accuracy determination of fine structure constant based on quantised hall
resistance. Phys Rev Lett. 1980;45:494."

instead of the original (and correct)

von Klitzing K, Dorda G, Pepper M. New method for high accuracy
determination of fine structure constant based on quantised hall
resistance. Phys Rev Lett. 1980;45:494.


[XML]
Same error as before persists.

[ODT]

Same error as before persists.


Thank you very much for your time and help.


Turgut

durduran{at}sas{dot}upenn{dot}edu

Turgut Durduran

unread,
Feb 28, 2008, 6:30:32 PM2/28/08
to
On 2008-02-28, Eitan M Gurari <gur...@cse.ohio-state.edu> wrote:
>>I am checking if this fixed my problem yet.
>
> Did it? The related fixes were in the *.4ht files.

unfortunately it did not. see my other message.


Thanks for all your help.

Turgut

Turgut Durduran

unread,
Feb 28, 2008, 6:43:47 PM2/28/08
to
On 2008-02-19, Dan <luec...@uark.edu> wrote:
>
> Well, I can help here. It is bloded because you write in your file:
> \bf{Fake title here}

bummer. that is me being silly. somehow latex accepted it this time
though.


>
> [I wonder where you got the file strokeadditional.sty, which contains
> some astonishing code. Not wrong, really, but very odd ways to
> go about doing things. I wouldn't be a bit surprised if this
> contributed
> to problems with tex4ht, though I have no way of being sure of that.]

that was modified (very lightly) from what was distributed by optical
society of america for its abstracts and papers, I do not see it on their
web-site anymore.

thank you very much for your help.

Eitan M Gurari

unread,
Feb 28, 2008, 6:59:50 PM2/28/08
to

>>I am checking if this fixed my problem yet.
>
> > Did it? The related fixes were in the *.4ht files.
>
> unfortunately it did not. see my other message.

The other message says

"references are listed but appear as: "<F8>:mbox:1,<F8>:mbox:2" instead of
supersciprt 1,2 etc"

is gone.

and that was the problem reported fixed

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
==> 9 Jul 07
==> 21 Feb 2008, 16:49, Dan Luecking, Turgut Durduran

* Fixed definition of \NAT@citexnum in natbib.4ht

The other message also says

But references are listed by their bibtex tag: ...

It is difficult to follow what problem is to be addressed when not provided a
minimal reports and files as requested in

http://www.cse.ohio-state.edu/~gurari/TeX4ht/
=> bug fixes

The provided latex sample file in

http://www.stwing.upenn.edu/~durduran/tmp/distr/

for instance, loads about 30 files which are irrelevant to the bug
report :-(

-eitan

> pdf latex try
(/usr/local/teTeX/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/teTeX/share/texmf/tex/latex/base/size12.clo))
(/usr/local/teTeX/share/texmf/tex/latex/graphics/graphics.sty
(/usr/local/teTeX/share/texmf/tex/latex/graphics/trig.sty)
(/usr/local/teTeX/share/texmf/tex/latex/graphics/graphics.cfg)
(/usr/local/teTeX/share/texmf/tex/latex/graphics/pdftex.def))
(/usr/local/teTeX/share/texmf/tex/latex/graphics/color.sty
(/usr/local/teTeX/share/texmf/tex/latex/graphics/color.cfg))
(/usr/local/teTeX/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/local/teTeX/share/texmf/tex/latex/graphics/keyval.sty))
(/usr/local/teTeX/share/texmf/tex/latex/subfigure/subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(/usr/local/teTeX/share/texmf/tex/latex/subfigure/subfigure.cfg))
(/usr/local/teTeX/share/texmf/tex/latex/rotating/rotating.sty
(/usr/local/teTeX/share/texmf/tex/latex/base/ifthen.sty))
(/usr/local/teTeX/share/texmf/tex/latex/endfloat/endfloat.sty) (./natbib.sty)
(/usr/local/teTeX/share/texmf/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (/usr/local/teTeX/share/texmf/tex/latex/base/fontenc.sty
(/usr/local/teTeX/share/texmf/tex/latex/base/t1enc.def))
(/usr/local/teTeX/share/texmf/tex/latex/base/textcomp.sty
(/usr/local/teTeX/share/texmf/tex/latex/base/ts1enc.def))
(/usr/local/teTeX/share/texmf/tex/latex/lm/lmodern.sty)
(/usr/local/teTeX/share/texmf/tex/latex/tools/xspace.sty)
(/usr/local/teTeX/share/texmf/tex/latex/geometry/geometry.sty
(/usr/local/teTeX/share/texmf/tex/latex/geometry/geometry.cfg)) (./try.aux)
(/usr/local/teTeX/share/texmf/tex/latex/base/ts1cmr.fd)
(/usr/local/teTeX/share/texmf/tex/latex/lm/t1lmr.fd)
(/usr/local/teTeX/share/texmf/tex/context/base/supp-pdf.tex
(/usr/local/teTeX/share/texmf/tex/context/base/supp-mis.tex

[1{/usr/local/teTeX/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
[2] (/usr/local/teTeX/share/texmf/tex/latex/lm/ts1lmr.fd)

Eitan M Gurari

unread,
Feb 28, 2008, 7:14:41 PM2/28/08
to

> references are listed by their bibtex tag:
>
>klitzing:qhe1. von Klitzing K, Dorda G, Pepper M. New method for high
>accuracy determination of fine structure constant based on quantised hall
>resistance. Phys Rev Lett. 1980;45:494."
>
>instead of the original (and correct)
>
> von Klitzing K, Dorda G, Pepper M. New method for high accuracy
>determination of fine structure constant based on quantised hall
>resistance. Phys Rev Lett. 1980;45:494.

My guess the problem is related to missing text4ht configurations for
strokejournalautogen.bst. Is that a public file? I was not able to
locate it on the web. -eitan


Turgut Durduran

unread,
Feb 28, 2008, 7:17:45 PM2/28/08
to
On 2008-02-28, Eitan M Gurari <gur...@cse.ohio-state.edu> wrote:
> and that was the problem reported fixed

indeed! Thanks to Dan and you for that.

> The other message also says
>
> But references are listed by their bibtex tag: ...
>
> It is difficult to follow what problem is to be addressed when not provided a
> minimal reports and files as requested in
>
> http://www.cse.ohio-state.edu/~gurari/TeX4ht/
> => bug fixes
>
> The provided latex sample file in
>
> http://www.stwing.upenn.edu/~durduran/tmp/distr/
>
> for instance, loads about 30 files which are irrelevant to the bug
> report :-(
>


I apologize. I have uploaded a minimal version, I think somehow the bugfix
to natbib broke the label generation.

http://www.stwing.upenn.edu/~durduran/tmp/distr/forconversion022808.tex

needs:
http://www.stwing.upenn.edu/~durduran/tmp/distr/strokejournalautogen.bst
http://www.stwing.upenn.edu/~durduran/tmp/distr/sil.bib


I am running it with:
htlatex forconversion022808.tex


Thanks for your time!

Turgut

Eitan M Gurari

unread,
Feb 28, 2008, 7:57:03 PM2/28/08
to

> I have uploaded a minimal version, I think somehow the bugfix
>to natbib broke the label generation.

Yes, it seems to be the case with option, as exhibited in the attached
example. I'll try to fix it. -eitan

\documentclass{article}

\usepackage[super]{natbib}

\begin{document}

patients \cite{klitzing:qhe,klitzing:nobel}.

\bibliographystyle{strokejournalautogen}
\bibliography{sil}

\end{document}

Eitan M Gurari

unread,
Feb 28, 2008, 9:06:36 PM2/28/08
to

>> references are listed by their bibtex tag:
>>
>>klitzing:qhe1. von Klitzing K, Dorda G, Pepper M. New method for high

>>instead of the original (and correct)


>>
>> von Klitzing K, Dorda G, Pepper M. New method for high accuracy

Try yet another new set of *.4ht files.

>My guess the problem is related to missing text4ht configurations for
>strokejournalautogen.bst.

I was wrong. The problem had nothing to do with the bst file.

-eitan

Turgut Durduran

unread,
Feb 29, 2008, 11:24:24 AM2/29/08
to
> Try yet another new set of *.4ht files.

Thank you very much, you act amazingly fast on these requests! This has
fixed the issue with bibliography.

I hope you do not mind me asking few more questions.

Is it possible to have a flag or a simple
check to run bibtex automatically if that is being used in a document? Or
do you prefer the user to run it and then run tex4ht commands?

In a similar vein, is there an option that I could use , like a "draft"
option to stop it from converting graphics files and including them? (but
still generate Figure numbers etc?).

Finally, running oolatex on a very simple file:

\documentclass[12pt]{article}
\begin{document}
hello
\end{document}


generates the following error (the resulting .odt file is unusable). I
wonder if it is a java error on my side?


Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes
mkdir: cannot create directory `sxw-forconversion022908.dir/Pictures': No
such file or directory
mv: cannot move `forconversion022908-styles.4oy' to
`sxw-forconversion022908.dir/styles.xml': No such file or directory
mkdir: cannot create directory `sxw-forconversion022908.dir/META-INF': No
such file or directory
mv: cannot move `forconversion022908-meta.4ot' to
`sxw-forconversion022908.dir/meta.xml': No such file or directory
cd: 1: can't cd to sxw-forconversion022908.dir
mv: cannot stat `sxw-forconversion022908.dir/forconversion022908.odt': No
such file or directory

Eitan M Gurari

unread,
Feb 29, 2008, 2:07:31 PM2/29/08
to
> Is it possible to have a flag or a simple
> check to run bibtex automatically if that is being used in a document? Or
> do you prefer the user to run it and then run tex4ht commands?

Users with some programming background may easily prepare htlatex-like
/ mk4ht-like scripts of their own to do such jobs. I prefer to
support just minimal sets of platform-dependent features,
concentrating on issues directly related to tex4ht.


> In a similar vein, is there an option that I could use , like a "draft"
> option to stop it from converting graphics files and including them? (but
> still generate Figure numbers etc?).

Try the -p flag of t4ht. For instance,

oolatex filename "" "" "-p"

> Finally, running oolatex on a very simple file:

> generates the following error (the resulting .odt file is unusable). I
> wonder if it is a java error on my side?

> Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes

Fix the class path for the java call in tex4ht.env (and make sure also
-i gets the right path). At my place I have

java -classpath /home/4/gurari/tex4ht.dir/texmf/tex4ht/bin/tex4ht.jar
xtpipes
-i /home/4/gurari/tex4ht.dir/texmf/tex4ht/xtpipes/
-o ...

-eitan


Turgut Durduran

unread,
Feb 29, 2008, 3:30:08 PM2/29/08
to
On 2008-02-29, Eitan M Gurari <gur...@cse.ohio-state.edu> wrote:
> oolatex filename "" "" "-p"

thanks.

> Fix the class path for the java call in tex4ht.env (and make sure also
> -i gets the right path). At my place I have
>
> java -classpath /home/4/gurari/tex4ht.dir/texmf/tex4ht/bin/tex4ht.jar
> xtpipes
> -i /home/4/gurari/tex4ht.dir/texmf/tex4ht/xtpipes/
> -o ...
>

Interestingly tex4ht.jar or xtpipes do not exist on my system. which is
the installation from ubuntu repositories and the bugfixes applied
according to instructions on the web-site. However, it is in the bugfix
package that I downloaded.

I am following instructions at:
http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn-upgrade.html

Where I should be putting them?

I must be acting very silly here and it is confounded by the Ubuntu
repository install -- I also have multiple tex4ht.env files now.

Turgut

Eitan M Gurari

unread,
Feb 29, 2008, 5:46:28 PM2/29/08
to
> Interestingly tex4ht.jar or xtpipes do not exist on my system. which is
> the installation from ubuntu repositories and the bugfixes applied
> according to instructions on the web-site. However, it is in the bugfix
> package that I downloaded.

The jar is relatively a new setup. I need to upgrade the main page
for compatibility with the bugfixes page, and will do so in a few
weeks.
Try

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
==> upgrade
==> items 18, 19

> repository install -- I also have multiple tex4ht.env files now.

The active one is the one listed in the messages issued during the compilation.

-eitan


Turgut Durduran

unread,
Mar 3, 2008, 12:11:17 PM3/3/08
to
On 2008-02-29, Eitan M Gurari <gur...@cse.ohio-state.edu> wrote:
>
> Fix the class path for the java call in tex4ht.env (and make sure also
> -i gets the right path). At my place I have
>
> java -classpath /home/4/gurari/tex4ht.dir/texmf/tex4ht/bin/tex4ht.jar
> xtpipes
> -i /home/4/gurari/tex4ht.dir/texmf/tex4ht/xtpipes/
> -o ...
>


Thanks for pointing out how silly I was to miss those steps in the upgrade
instructions.

Now I am confused about what to do with the "%" signs in the tex4ht.env
file. I have multiple lines like the following. I fixed the paths.

<ooxtpipes>
.4oo mv %%0.4oo %%0.tmp
.4oo java -classpath %% /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i %% /usr/share/texmf/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
.4om mv %%1.4om %%1.tmp
.4om java -classpath %% /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i %% /usr/share/texmf/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
</ooxtpipes>

I still get the same error I described earlier.


Eitan M Gurari

unread,
Mar 3, 2008, 6:07:37 PM3/3/08
to
> Now I am confused about what to do with the "%" signs in the tex4ht.env
> file. I have multiple lines like the following. I fixed the paths.
>
> <ooxtpipes>
> .4oo mv %%0.4oo %%0.tmp
> .4oo java -classpath %% /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i %% /usr/share/texmf/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp

Replace with

.4oo java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp

and make sure that

/usr/share/texmf/tex4ht/bin/tex4ht.jar

is a correct path to the file tex4ht.jar and the directory

/usr/share/texmf/tex4ht/xtpipes/

contains the files: docbook.4xt, htspk.4xt, jsml.4xt, oo-math.4xt,
oo-text.4xt, xhtml.4xt, xtpipes-default.4xt, xtpipes-map.dtd, and
xtpipes.dtd.

> .4om mv %%1.4om %%1.tmp
> .4om java -classpath %% /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i %% /usr/share/texmf/tex4ht/xtpipes/ -o %%1.4om %%1.tmp

Similarly, replace with

.4om java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%1.4om %%1.tmp

> I still get the same error I described earlier.

The following error?

Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes

-eitan

Turgut Durduran

unread,
Mar 4, 2008, 10:53:10 AM3/4/08
to
On 2008-03-03, Eitan M Gurari <gur...@cse.ohio-state.edu> wrote:
>
>> I still get the same error I described earlier.
>
> The following error?
>
> Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes
>

The java related errors are gone. However, the output .odt file is still
not recognized by openoffice. Only errors I can see are:


mv: cannot stat `0.4oo': No such file or directory
mkdir: cannot create directory `sxw-forconversion022908.dir/Pictures': No
such f


ile or directory
mv: cannot move `forconversion022908-styles.4oy' to
`sxw-forconversion022908.dir
/styles.xml': No such file or directory
mkdir: cannot create directory `sxw-forconversion022908.dir/META-INF': No
such f
ile or directory
mv: cannot move `forconversion022908-meta.4ot' to
`sxw-forconversion022908.dir/m
eta.xml': No such file or directory
cd: 1: can't cd to sxw-forconversion022908.dir
mv: cannot stat `sxw-forconversion022908.dir/forconversion022908.odt': No
such file or directory

---

I am doing this with a very simple file:

\documentclass[12pt]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\begin{document}
hello
\end{document}

and using

/usr/share/tex4ht/oolatex filename


Eitan M Gurari

unread,
Mar 4, 2008, 11:45:56 AM3/4/08
to

>mv: cannot stat `0.4oo': No such file or directory
>mkdir: cannot create directory `sxw-forconversion022908.dir/Pictures': No
>such f
>ile or directory

Can you show all the messages issued by t4ht.c. They should be
similar to the attached ones. I in particular wonder how the making of
directory sxw-forconversion022908.dir went at your place.

Also, does your operating system outputs

foo
foo/goo

for the following sequence of instructions

mkdir foo
mkdir foo/goo
find foo

-eitan


----------------------------
t4ht.c (2008-02-25-18:56)
t4ht -f/try
-cooxtpipes
-coo
(/home/4/gurari/tex4ht.dir/texmf/tex4ht/base/solaris/tex4ht.env)
Entering forconversion022908.lg
Entering forconversion022908.css
Entering forconversion022908.tmp
System call: mv forconversion022908.4oo forconversion022908.tmp
System return: 0
System call: java -classpath ..... -o forconversion022908.4oo forconversion022908.tmp
System return: 0
System call: mkdir sxw-forconversion022908.dir <------------------------------------- (1)
System return: 0
System call: mv forconversion022908.4oo sxw-forconversion022908.dir/content.xml
System return: 0
System call: mkdir sxw-forconversion022908.dir/Pictures <---------------------------- (2)
System return: 0
System call: mv forconversion022908-settings.4os sxw-forconversion022908.dir/settings.xml
System return: 0
System call: mv forconversion022908-styles.4oy sxw-forconversion022908.dir/styles.xml
System return: 0
System call: mkdir sxw-forconversion022908.dir/META-INF
System return: 0
System call: mv forconversion022908-manifest.4of sxw-forconversion022908.dir/META-INF/manifest.xml
System return: 0
System call: mv forconversion022908-meta.4ot sxw-forconversion022908.dir/meta.xml
System return: 0
System call: cd sxw-forconversion022908.dir; zip -r forconversion022908.odt * ; cd ..

Turgut Durduran

unread,
Mar 4, 2008, 2:36:17 PM3/4/08
to
On 2008-03-04, Eitan M Gurari <gur...@cse.ohio-state.edu> wrote:
> Can you show all the messages issued by t4ht.c. They should be
> similar to the attached ones. I in particular wonder how the making of
> directory sxw-forconversion022908.dir went at your place.
>
> Also, does your operating system outputs
>
> foo
> foo/goo
>
> for the following sequence of instructions
>
> mkdir foo
> mkdir foo/goo
> find foo

yep, find works fine as you expected.

Below is the logs for tex4ht.c

----------------------------
tex4ht.c (2007-04-21-21:07 kpathsea)
tex4ht -f/forconversion022908
-i/usr/share/texmf/tex4ht/ht-fonts/
-cmozhtf
(/usr/share/texmf/tex4ht/tex4ht.env)
(/usr/share/texmf/tex4ht/ht-fonts/mozilla/charset/unicode.4hf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmsy6.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmsy8.tfm)
(/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/cmmi6.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmmi.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmmi8.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmmi.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmmi12.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmmi.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmr6.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr6.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/cm/cmr8.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr8.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/ams/cmbsy6.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/cm/cmbsy.htf)
Searching `cmsy.htf' for `cmbsy6.htf'
(/usr/share/texmf/tex4ht/ht-fonts/unicode/cm/cmsy.htf)
(/usr/share/texmf-texlive/fonts/tfm/public/ams/cmbsy8.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/cm/cmbsy.htf)
Searching `cmsy.htf' for `cmbsy8.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/cmr12.tfm)
(/usr/share/texmf/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr12.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
forconversion022908.4oo
file forconversion022908.tmp
file forconversion022908-settings.4os
file forconversion022908-styles.4oy
file forconversion022908-manifest.4of
file forconversion022908-meta.4ot
file forconversion022908.4od
]
Execute script `forconversion022908.lg'
----------------------------
t4ht.c (2007-01-05-03:17 kpathsea)
t4ht -f/forconversion022908
-cooxtpipes
-coo
(/usr/share/texmf/tex4ht/tex4ht.env)
Entering forconversion022908.lg
System call: mv 0.4oo 0.tmp


mv: cannot stat `0.4oo': No such file or directory

--- Warning --- System return: 256
System call: mkdir sxw-forconversion022908.dir/Pictures


mkdir: cannot create directory `sxw-forconversion022908.dir/Pictures': No
such file or directory

--- Warning --- System return: 256


System call: mv forconversion022908-styles.4oy
sxw-forconversion022908.dir/styles.xml

mv: cannot move `forconversion022908-styles.4oy' to

`sxw-forconversion022908.dir/styles.xml': No such file or directory
--- Warning --- System return: 256
System call: mkdir sxw-forconversion022908.dir/META-INF
mkdir: cannot create directory `sxw-forconversion022908.dir/META-INF': No
such file or directory
--- Warning --- System return: 256


System call: mv forconversion022908-meta.4ot
sxw-forconversion022908.dir/meta.xml

mv: cannot move `forconversion022908-meta.4ot' to

`sxw-forconversion022908.dir/meta.xml': No such file or directory
--- Warning --- System return: 256


System call: cd sxw-forconversion022908.dir; zip -r
forconversion022908.odt * ; cd ..

cd: 1: can't cd to sxw-forconversion022908.dir

updating: distr/ (stored 0%)
updating: distr/strokeadditional.sty (deflated 62%)
updating: distr/strokejournalautogen.bst (deflated 78%)
updating: distr/sil.bib (deflated 39%)
updating: distr/sil.eps (deflated 75%)
updating: distr/forconversion021808.tex (deflated 54%)
updating: distr/outputs/ (stored 0%)
updating: distr/outputs/oolatex/ (stored 0%)
updating: distr/outputs/oolatex/oolatexoutput (deflated 88%)
updating: distr/outputs/oolatex/forconversion021808.odt (deflated 1%)
updating: distr/outputs/htlatex/ (stored 0%)
updating: distr/outputs/htlatex/forconversion021808.css (deflated 77%)
updating: distr/outputs/htlatex/forconversion0218080x.png (stored 0%)
updating: distr/outputs/htlatex/htlatexoutput (deflated 77%)
updating: distr/outputs/htlatex/forconversion021808.html (deflated 76%)
updating: distr/outputs/mzlatex/ (stored 0%)
updating: distr/outputs/mzlatex/forconversion021808.xml (deflated 77%)
updating: distr/outputs/mzlatex/forconversion021808.xref (deflated 69%)
updating: distr/outputs/mzlatex/mzlatexoutput (deflated 88%)
updating: distr/forconversion022808.tex (deflated 38%)
updating: forconversion022908-manifest.4of (deflated 66%)
updating: forconversion022908-meta.4ot (deflated 57%)
updating: forconversion022908-settings.4os (deflated 45%)
updating: forconversion022908-styles.4oy (deflated 91%)
updating: forconversion022908.4ct (deflated 16%)
updating: forconversion022908.4od (stored 0%)
updating: forconversion022908.4oo (deflated 67%)
updating: forconversion022908.4tc (deflated 17%)
updating: forconversion022908.aux (deflated 8%)
updating: forconversion022908.dvi (deflated 86%)
updating: forconversion022908.idv (deflated 61%)
updating: forconversion022908.lg (deflated 74%)
updating: forconversion022908.log (deflated 78%)
updating: forconversion022908.tex (deflated 29%)
updating: forconversion022908.tex~ (deflated 38%)
updating: forconversion022908.tmp (deflated 20%)
updating: forconversion022908.xref (stored 0%)
updating: sil.bib (deflated 39%)
updating: sil.eps (deflated 75%)
updating: sil.txt (deflated 48%)
updating: sil3 (deflated 88%)
updating: strokeadditional.sty (deflated 62%)
updating: strokejournalautogen.bst (deflated 78%)
updating: sil (deflated 70%)
System return: 0
System call: mv sxw-forconversion022908.dir/forconversion022908.odt .
mv: cannot stat `sxw-forconversion022908.dir/forconversion022908.odt': No
such file or directory
--- Warning --- System return: 256

Eitan M Gurari

unread,
Mar 4, 2008, 5:05:40 PM3/4/08
to

>(/usr/share/texmf/tex4ht/tex4ht.env)


>System call: mv 0.4oo 0.tmp
>mv: cannot stat `0.4oo': No such file or directory
>--- Warning --- System return: 256
>System call: mkdir sxw-forconversion022908.dir/Pictures
>mkdir: cannot create directory `sxw-forconversion022908.dir/Pictures': No
>such file or directory
>--- Warning --- System return: 256
>System call: mv forconversion022908-styles.4oy


Looks like there are problems at the start of the <oo> segment of tex4ht.env,
where some % characters are missing. See, for instance,

http://www.cse.ohio-state.edu/~gurari/TeX4ht/tex4ht-env-unix.txt

Can you show the leading lines of that segment.

-eitan

Turgut Durduran

unread,
Mar 4, 2008, 6:44:14 PM3/4/08
to
> Looks like there are problems at the start of the <oo> segment of tex4ht.env,
> where some % characters are missing.

Most probably! I am very puzzled about what you want me to do with the
"%%" signs. In your previous post you indicated that I remove the %% signs
from the part with "java -classpath", but I do not what to do about those
around by "mv". In your example in the web-site, all %% signs are intact:

as follows:


<ooxtpipes>
.4oo mv %%0.4oo %%0.tmp

.4oo java -classpath %%~/texmf-dist/tex4ht/bin xtpipes -i
%%~/texmf-dist/tex4ht/xttl/ -o %%0.4oo %%0.tmp
.4om mv %%1.4om %%1.tmp
.4om java -classpath %%~/texmf-dist/tex4ht/bin xtpipes -i
%%~/texmf-dist/tex4ht/xttl/ -o %%1.4om %%1.tmp
</ooxtpipes>

mine looks like this (you asked me to remove those on classpath, I removed
around "mv" as well):

<ooxtpipes>
.4oo mv 0.4oo 0.tmp


.4oo java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i

/usr/share/texmf/tex4ht/xtpipes/ -o 0.
4oo 0.tmp
.4om mv 1.4om 1.tmp


.4om java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i

/usr/share/texmf/tex4ht/xtpipes/ -o 1
.4om 1.tmp
</ooxtpipes>


I did not touch around the <oo> segment, for example:

yours:
<oo>
%%% openoffice %
.4oo mkdir sxw-%%0.dir
.4os mkdir sxw-%%0.dir/Pictures
.4os mv %%1.4os sxw-%%0.dir/settings.xml
.4oo mv %%0.4oo sxw-%%0.dir/content.xml
%


mine:
<oo>
%%% openoffice %
.4oo mkdir sxw-%%0.dir
.4os mkdir sxw-%%0.dir/Pictures
.4os mv %%1.4os sxw-%%0.dir/settings.xml
.4oo mv %%0.4oo sxw-%%0.dir/content.xml
%

the rest of the file between <oo> and </oo> are also identical.

I have removed "%%"'s only around "java -classpath" parts.

Thanks for all your help.


turgut

Eitan M Gurari

unread,
Mar 4, 2008, 7:50:13 PM3/4/08
to

>"%%" signs. In your previous post you indicated that I remove the %% signs
>from the part with "java -classpath", but I do not what to do about those
>around by "mv".

Not exactly :-(

http://groups.google.com/group/comp.text.tex/msg/15a2f9e6957dde36

In any case, please try the following segment.

<ooxtpipes>
.4oo mv %%0.4oo %%0.tmp

.4oo java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
.4om mv %%1.4om %%1.tmp
.4om java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
</ooxtpipes>

There should be exactly 4 records

.4oo mv ...
.4oo java ...
.4om mv ...
.4om java ...

Hopfully they'll not show broken in the posting.


>I did not touch around the <oo> segment, for example:
>
>yours:
><oo>

>mine:
><oo>

>the rest of the file between <oo> and </oo> are also identical.

Good.

Turgut Durduran

unread,
Mar 5, 2008, 1:15:58 PM3/5/08
to
On 2008-03-05, Eitan M Gurari <gur...@cse.ohio-state.edu> wrote:
>
>
>>"%%" signs. In your previous post you indicated that I remove the %% signs
>>from the part with "java -classpath", but I do not what to do about those
>>around by "mv".
>
> Not exactly :-(
>
> http://groups.google.com/group/comp.text.tex/msg/15a2f9e6957dde36
>
> In any case, please try the following segment.
>
><ooxtpipes>
> .4oo mv %%0.4oo %%0.tmp
> .4oo java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
> .4om mv %%1.4om %%1.tmp
> .4om java -classpath /usr/share/texmf/tex4ht/bin/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
></ooxtpipes>
>
> There should be exactly 4 records
>
> .4oo mv ...
> .4oo java ...
> .4om mv ...
> .4om java ...
>
> Hopfully they'll not show broken in the posting.


I think I finally got a handle of it! It works.

thank you for being so patient with me and I apologize for my carelessness
in implementing the suggestions you have provided.

I am now going back to the original , complex document for testing.

0 new messages