[l2h] latex2html and hyperref.sty

Dan Scholnik Dan Scholnik <scholnik@radar.nrl.navy.mil>
Fri, 18 Feb 2000 20:09:12 -0500

Like many others, I'm trying to prepare documents in parallel to
generate ps, pdf, and html versions, and I'm using the hyperref
package for the pdf links.  It seems that hyperref changes the .aux
file in ways that latex2html doesn't like, the result being that
figures  and equation links don't get numbers.  Is this a known
problem?  Is there a fix (other than running latex without hyperref,
which works but is tedious)?  I'm using latex2html-99.2beta6 from
2/17/2000 or so.  I tried using the latex2html option to hyperref also,
but no change.

An example (test.tex):








test.aux without hyperref:

\@writefile{toc}{\contentsline {section}{\numberline {1}ashdakshdasd}{1}}
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces sdasdasd}}{1}}

test.aux with hyperref:

\global \let \oldcontentsline\contentsline
\gdef \contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global \let \oldnewlabel\newlabel
\gdef \newlabel#1#2{\newlabelxx{#1}#2}
\gdef \newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\let \contentsline\oldcontentsline
\let \newlabel\oldnewlabel}
\global \let \hyper@last\relax 

\@writefile{toc}{\contentsline {section}{\numberline {1}ashdakshdasd}{1}{section.1}}
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces sdasdasd}}{1}{figure.1}}
\newlabel{fig:sadsd}{{1}{1}{ashdakshdasd\relax }{figure.1}{}}

the last part of the latex2html output (with hyperref):

*********** WARNINGS ***********  
No implementation found for style `dvips'
No implementation found for style `hyperref'

Substitution of arg to newlabelxx delayed.

No number for "sdasdasd"

thanks in advance,
Dan Scholnik