# [tex4ht] oolatex and hyperref

Daniel Becker d.becker at jpberlin.de
Sat Jan 16 17:24:48 CET 2010

Am 16.01.2010 um 13:19 schrieb Radhakrishnan CV:

>
> \section{this is the problem \protect\ref{greatprop} \label{alabel}}
>
> The only change is that we are adding \protect before \ref.  Please
> try and get back to me with the log file of the run, if you have
> problems.
>
> I did an identical setup as yours in a mac and succeeded in
> replicating the problem. And the above change was the remedy.

That solved the problem. If I load hyperref with

\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex]{hyperref}
\else
\usepackage[tex4ht]{hyperref}
\fi

the file now compiles both with pdflatex and mk4ht oolatex.