[l2h] Problem with latex2html, amsmath, and \htmlimage

Steven R. Hall Steven_Hall at MIT.EDU
Sat Sep 20 11:26:22 CEST 2003

I'm having problems with latex2html and the amsmath package. The 
simplest example of this is for the latex file

% \usepackage{amsmath}





This should produce an html document that has four equations that look like:

                   x = 1                     (1)

                   y = 2                     (2)

                   z = 3                     (3)

                   w = 4                     (4)

In fact, that's what I get if I delete the \usepackage{amsmath} 
statement, or don't use \htmlimage. However, what I actually get is

                   x = 1                     (1)

                   y = 2                 (3)

                   z = 3                     (3)

                   w = 4                 (5)

That is, the lines that use \htmlimage encode the entire equation as 
a .gif (including the equation number), AND the equation number is 
wrong. I would prefer that the equation number not be part of the 
.gif, but more importantly, the equation numbers must be correct.

The problem with numbering get even worse for a document with sections.

Any clues on how to fix?

I am running on Mac OS X (10.2). The results of issuing the 
latex2html command are shown below:

steve% latex2html -init_file latex2html-init signals_notes.tex
Note: Loading /Users/steve/.latex2html-init
Note: Initialising with file: latex2html-init
This is LaTeX2HTML Version 2002 (1.62)
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 4.0  with math,frame extensions

Loading /sw/lib/latex2html/versions/html4_0.pl

Loading /sw/lib/latex2html/versions/math.pl
Loading /sw/lib/latex2html/versions/frame.pl
Loading /sw/lib/latex2html/styles/color.perl
  *** initialising colors ***

  *** processing declarations ***

Loading /sw/lib/latex2html/versions/latin1.pl

Note: Working directory is 
Note: Images will be generated in /tmp/l2h17835

texexpand V2002 (Revision 1.11)

Loading /sw/lib/latex2html/styles/texdefs.perl...
Loading /sw/lib/latex2html/styles/article.perl
Loading /sw/lib/latex2html/styles/html.perl
Reading ...

Reading aux file: 
Processing macros ...++....
Translating ...
0/2:top of signals_notes: for signals_notes_mn.html

  *** translating preamble ***
  *** preamble done ***
1/2:section:.."1 First" for 1_First_mn.html
2/2:sectionstar:.."About this document ..." for About_this_document_mn.html

Writing image file ...

This is e-TeX, Version 3.141592-2.1 (Web2C 7.5.2)
entering extended mode
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.

  *** processing 2 images ***

Generating postscript images using dvips ...
This is dvips(k) 5.94a Copyright 2003 Radical Eye Software (www.radicaleye.com)
' TeX output 2003.09.19:1002' -> /tmp/l2h17835/image
(-> /tmp/l2h17835/image001) <texc.pro><aae443f0.enc><f7b6d320.enc><texps.pro>
(-> /tmp/l2h17835/image002) <texc.pro><aae443f0.enc><f7b6d320.enc><texps.pro>
Converting image #2
Converting image #1

Doing section links ....
  *** making frame-help file  ... ... cancelled ***
Copying navigation icons ...
  *** Adding document-specific styles ***

More information about the latex2html mailing list