[l2h] Nesting amsmath constructs align and cases causes infinite loop

Julius Smith jos at ccrma.stanford.edu
Thu Aug 14 02:58:03 CEST 2014


I get the same behavior in my Mac OS environment.  The failure is 
noted in images.log but not in the console printout:

! Undefined control sequence.
\lthtmlindisplaymathZ ->\egroup \centerinlinemath
                                                   \lthtmllogmath 
\lthtmlsetm...
l.162 \lthtmlindisplaymathZ


I have no idea how it's happening, but images.tex contains a 
definition only for \centerinlinemathS:

\def\centerinlinemathS{%
   \dimen1=\ifdim\ht\sizebox<\dp\sizebox \dp\sizebox\else\ht\sizebox\fi
   \advance\dimen1by.5pt \vrule width0pt height\dimen1 depth\dimen1
  \dp\sizebox=\dimen1\ht\sizebox=\dimen1\relax}

while latex2html clearly wants to emit the desired definition:

     "\\def\\centerinlinemath{%\n" .
     "  \\dimen1=\\ifdim\\ht\\sizebox<\\dp\\sizebox 
\\dp\\sizebox\\else\\ht\\sizebox\\fi\n" .
     "  \\advance\\dimen1by.5pt \\vrule width0pt height\\dimen1 
depth\\dimen1 \n".
     " \\dp\\sizebox=\\dimen1\\ht\\sizebox=\\dimen1\\relax}\n\n" .

Where is that 'S' coming from?!?

At 02:16 PM 8/13/2014, Matthew Saltzman wrote:
>Using latex2html-2012-4.fc20.noarch on Fedora 20 Linux with
>texlive-2013-5.20131226_r32488.fc20.x86_64, the following file compiles
>with latex (and looks fine as a DVI) or with pdflatex (and looks fine as
>a PDF), but fails to compile with latex2html.
>
>         \documentclass{article}
>         \usepackage{amsmath}
>         \usepackage{html}
>
>         \begin{document}
>
>         \mbox{}
>         \begin{align}
>           v_j &=
>           \begin{cases}
>             1 & \text{if this happens} \\
>             0 & \text{otherwise}
>           \end{cases}
>         \end{align}
>
>         \end{document}
>
>The tail of the output when it hangs is:
>
>         Writing image file ...
>
>         This is pdfTeX, Version 3.1415926-2.6-1.40.14 (TeX Live 2014/dev)
>          restricted \write18 enabled.
>         entering extended mode
>         (./images.tex
>         LaTeX2e <2011/06/27>
>         Babel <3.9h> and hyphenation patterns for 2 languages loaded.
>
>[hangs here consuming 100% of a cpu]
>
>         ^C! Interruption.
>         <to be read again>
>                            \vfill
>         l.163 \lthtmlcheckvsize
>                                \clearpage}
>
>         LaTeX2HTML shutting down.
>
>Any suggestions?
>
>TIA.
>
>--
>Matthew Saltzman
>Clemson University Math Sciences
>mjs AT clemson DOT edu
>
>_______________________________________________
>latex2html mailing list
>latex2html at tug.org
>http://tug.org/mailman/listinfo/latex2html


Julius O. Smith III <jos at ccrma.stanford.edu>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/latex2html/attachments/20140813/2499b4ec/attachment.html>


More information about the latex2html mailing list