[l2h] Math mode broken?

Erik Demaine edemaine@mit.edu
Sun, 25 Nov 2001 14:31:39 -0500 (EST)


If I'm not mistaken, LaTeX2HTML Version 2K.1beta (1.58)
[what I perceive to be the latest version] has a rather major bug:
Math mode isn't working.

More precisely, the generated images.tex does not seem to catch the
leading $ in the math expression.

For example, consider this file test.tex:

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

"latex2html test" (2K.1beta version 1.58) produces the following images.tex:

    ....

    % !!! IMAGES START HERE !!!

    {\newpage\clearpage
    \lthtmlinlinemathA{tex2html_wrap_inline4}%
    x$%
    \lthtmlinlinemathZ
    \lthtmlcheckvsize\clearpage}


    \end{document}

which does not compile.  In contrast, "latex2html test" (99.2beta8 version
1.46) produces the following images.tex:

    ....

    % !!! IMAGES START HERE !!!

    {\newpage\clearpage
    \lthtmlinlinemathA{tex2html_wrap_inline4}%
    $x$%
    \lthtmlinlinemathZ
    \lthtmlcheckvsize\clearpage}


    \end{document}

which compiles fine.

Is there a bugfix to get 2K.1beta to produce the latter instead of the former?

I'd really like to use 2K.1beta because 99.2beta8 crashes when using
custom_title_hook (even when using the default custom_title_hook).
[Even on the simple example above, "latex2html -custom_titles test" says
 ndbm store returned -1, errno 22, key "" at /usr/local/bin/latex2html line 10615.]

Thanks!
Erik
-- 
Erik Demaine  |  edemaine@mit.edu  |  http://db.uwaterloo.ca/~eddemain/