> What a great tool! There is one problem I can't figure out, tho.
Thanks for saying so.
It is getting even better.
> 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
redefined for LaTeX, but not for LaTeX2HTML,
which does not read .sty files by default.
(You can change this, but at great risk.)
> 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
because it gets this information from the .aux file produced by LaTeX.
> 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
Load the html.sty and amsmath.sty packages:
\usepackage{html}
\usepackage{amsmath}
then make a conditional definition:
\begin{htmlonly}
\numberwithin{equation}{chapter} % is this the right way around ?
\renewcommand{\theequation}{....}
\end{htmlonly}
THis should give you what you want.
> 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.
Ouch. That precludes using \usepackage
Get a local guru to turn it into a LaTeX-2e package.
Or do it yourself to gain some brownie points.
> 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
It never reads thesis.sty so doesn't know to reset them for each chapter.
Hope this helps,
Ross Moore