Hello Steven,
On Sat, 20 Sep 2003, Steven R. Hall wrote:
I'm having problems with latex2html and the amsmath package. The
simplest example of this is for the latex file
\documentclass[letterpaper,11pt]{article}
\usepackage{html}
% \usepackage{amsmath}
Why is this commented-out ?
\begin{document}
\section{First}
\begin{equation}
x=1
\end{equation}
\begin{equation}\htmlimage{}
y=2
\end{equation}
\begin{equation}
z=3
\end{equation}
\begin{equation}\htmlimage{}
w=4
\end{equation}
\end{document}
Why do you have some equations with \htmlimage and others not ?
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)
No; the alignment could be shot-to-pieces by the mixture of \htmlimage
and not.
When you use \usepackage{amsmath} then LaTeX2HTML knowns to expect
lots of mathematics, perhaps with complicated alignments, and cetainly
expects to control equation-numbering.
By using \htmlimage you are saying, ignore what you would normally
do with this environment and pass it to LaTeX for an image.
This forces LaTeX2HTML to select a paper-size on which to layout
the equation and equation-number as it creates the image.
Aligning equation-numbers in images with those not in images
is essentially impossible, especially since you have no control
on how wide your reader has set his/her browser-window; that's
to say nothing of the choice of font size and style.
I don't think that is is what you want to do here at all.
In fact, that's what I get if I delete the \usepackage{amsmath}
Delete the \usepackage line ?
It's what I get if I retain that line:
http://www-texdev.ics.mq.edu.au/HALL/amseq/node1.html
statement, or don't use \htmlimage. However, what I actually get is
x = 1 (1)
y = 2 (3)
z = 3 (3)
w = 4 (5)
The .gif images are in one column of a TABLE while the non-image
equation numbers are in another column to the right of the images.
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.
What you are asking for is supposed to be the normal behaviour
of \usepackage{amsmath}.
If that is not what you are getting, would you send a URL to a web-site
that you have created that shows it created incorrectly.
The problem with numbering get even worse for a document with sections.
Any clues on how to fix?
Certainly you should not be using \htmlimage
with environments that include numbering.
Hope this helps,
Ross Moore
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
OPENING
/Users/steve/Documents/Classes/Unified/Unified_Fall_2003/Signals_and_Systems_Notes/signals_notes.tex
Note: Working directory is
/Users/steve/Documents/Classes/Unified/Unified_Fall_2003/Signals_and_Systems_Notes/signals_notes
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:
/Users/steve/Documents/Classes/Unified/Unified_Fall_2003/Signals_and_Systems_Notes/signals_notes.aux
...
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
(./images.tex
LaTeX2e 2001/06/01
Babel v3.7h and hyphenation patterns for american, french, german, ngerman, n