[l2h] latex2html and hyperref.sty

Ross Moore Ross Moore <ross@ics.mq.edu.au>
Tue, 22 Feb 2000 12:59:17 +1100 (EST)

About that remaining problem with hyperref and math in captions ...

> \caption{Integrated $1$ noise-shaping DAC.}
> without hyperref produces the .aux file line
> \@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Integrated $1$ noise-shaping DAC.}}{2}}
> and the numbering is fine.  With hyperref, the line is
> \@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Integrated $1$ noise-shaping DAC.}}{2}{figure.1}}
> and latex2html complains
> No number for "Integrated$1$noise-shapingDAC."
There is an easy edit to fix it.
Within the subroutine block:    sub extract_captions {
make the following edit (twice) :

 	if ($eline =~ /\\(old)?contentsline/) {
                   ^^^^^^ ------  insert this optional chunk!

Now those caption lines will be treated as intended, so that the mathematics
is converted the same way as it would be within the body of the document.

Hope this helps.

	Ross Moore