Howdy all,
I used latex2html to make my Ph.D. thesis into html format.
What a great tool! There is one problem I can't figure out, tho.
My thesis has several chapters, of course, and the equations are
numbered as 1.21 for example, where the "1" is the chapter number
and the "21" is the number within the chapter. The equation numbers
are reset at the beginning of each chapter. I am pretty sure this
is all defined in my school's local "thesis.sty", where \theequation
is redefined. Anyway, when I run it through latex2html, it
changes the equation numbers in the margin to consecutive numbers
running through the whole document. When I REFER to the equations in
the text, with a \ref command, latex2html gets the number correct. So
there might be a reference in the text to equation 4.21, but when you
follow the link you find an equation labeled 68 or whatever. Does
anyone have a suggestion how to fix this? Thanks tons,
Andy Saunders
ps For what it is worth, I am using latex2html version 98-1 in html 3.2
mode. The thesis.sty file forces latex itself to run in 2.09 mode.
This is all happening on a linux machine. I just tried a little
sample code, and latex2html gets the equation numbers exactly right
in article, book, and report style, all in 2.09 mode. It screws up the
equation numbers when using the thesis style. So I assume
the problem must lie in something the thesis.sty file does. So here
is the only time equations get mentioned in our thesis.sty:
\if@decimalfigures
\@addtoreset{equation}{chapter}
\def\theequation{\thechapter.\arabic{equation}}
\else
\def\theequation{\arabic{equation}}
\fi
In my thesis, decimalfigures is set. Just in case this if clause was
causing the problem tho, I commented out all except the second and third
lines of the above snippet and reprocessed the thesis file: still did not
work. Is there something wrong with the above snippet of style file
that would make latex2html screw up the equation numbers?
Thanks again.