Hi,
(sorry about the previous mail, I forgot to append the example)
I'm having trouble with the mbox command when the argument
contains $something$, everything after the mbox command
within the same section will be thrown out by the translator.
Below follows sample input and output. Have I missed something ?
best regards,
Ben Polman
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sample latex source
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{book}
\usepackage{html}
\newcommand{\TRY}{\mbox{$\langle${\sc TRY}$\rangle$}}
%%%begin{latexonly}
%%\newcommand{\TRY}{\mbox{$\langle${\sc TRY}$\rangle$}}
%%%end{latexonly}
%%\begin{htmlonly}
%%\newcommand{\TRY}{{$\langle${\sc TRY}$\rangle$}}
%%\end{htmlonly}
\begin{document}
A very small sample to show a strange behaviour of latex2html
with respect to the treatment of the mbox command.
If the mbox argument contains \$\ signs, strange things happen.
Try the following example \TRY\ and notice that everything
after the mbox is thrown away. If you include the commented out
part at the top and remove the first newcommand
you have a work around but not a real solution.
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% output from latex2html sample.tex
%% Below that I have included the generated html file, where you can see
%% that it simply stops after the implementation of the mbox command.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/tmp> latex2html sample.tex
This is LaTeX2HTML Version 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Revised and extended by:
Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 3.2
Loading /vol/wiskalg/latex2html/versions/html3_2.pl
*** processing declarations ***
OPENING /tmp/sample.tex
*** `texexpand' done ***
*** database open ***
Loading /vol/wiskalg/latex2html/styles/texdefs.perl...
Loading /vol/wiskalg/latex2html/styles/book.perl
Loading /vol/wiskalg/latex2html/styles/html.perl
Reading ...
%%%,++.
@@@@
Translating ...
0/1:top of sample: for sample.html
*** translating preamble ***
...
*** preamble done ***
;.,,.;...
1/1:sectionstar:."About this document ... " for node1.html
;;.
Writing image file ...
This is TeX, Version 3.1415 (C version 6.1)
(images.tex
LaTeX2e <1994/12/01> patch level 3
Hyphenation patterns for english, dutch, loaded.
Generating postscript images using dvips ...
images will be generated in /tmp/bug/l2h13167/
This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software
' TeX output 1998.05.11:1003' -> /tmp/sample/l2h13167/image
(-> /tmp/sample/l2h13167/image001) <tex.pro><special.pro><color.pro>[1]
(-> /tmp/sample/l2h13167/image002) <tex.pro><special.pro><color.pro>[2]
GS>
Writing image: img1.gifGS>
Writing image: img2.gif
Doing section links .....
Done.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% now follows sample.html
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos ([EMAIL PROTECTED]), CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>No Title</TITLE>
<META NAME="description" CONTENT="No Title">
<META NAME="keywords" CONTENT="sample">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="sample.css">
<LINK REL="next" HREF="node1.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1"
HREF="node1.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/vol/wiskalg/latex2html/icons.gif/next_motif.gif"></A>
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/vol/wiskalg/latex2html/icons.gif/up_motif_gr.gif">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/vol/wiskalg/latex2html/icons.gif/previous_motif_gr.gif">
<BR>
<B> Next:</B> <A NAME="tex2html2"
HREF="node1.html">About this document ...</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<P>
A very small sample to show a strange behaviour of latex2html
with respect to the treatment of the mbox command.
If the mbox argument contains $ signs, strange things happen.
Try the following example <IMG
WIDTH="33" HEIGHT="66" ALIGN="MIDDLE" BORDER="0"
SRC="img1.gif"
ALT="$\langle$">
TRY<IMG
WIDTH="33" HEIGHT="66" ALIGN="MIDDLE" BORDER="0"
SRC="img2.gif"
ALT="$\rangle$">
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"> </A>
<UL>
<LI><A NAME="tex2html3"
HREF="node1.html">About this document ... </A>
</UL>
<!--End of Table of Child-Links-->
<BR><HR>
<ADDRESS>
<I>Ben Polman</I>
<BR><I>1998-05-11</I>
</ADDRESS>
</BODY>
</HTML>