I'm trying to compile a part of my thesis with tex4ht (to use LibreOffice grammar checker). It was working well few weeks ago but now it fails with the error:
! Undefined control sequence.
\H@refstepcounter #1->\sf@Hrefstepcounter
{#1}\@ifundefined {c@sub#1}{}{\if@...
l.42 \centering
It seems related to the subfig package.
I use TeXLive 2010 on Ubuntu 11.04.
Here is MWE with the way I load hyperref (the photo is the one from this wikipedia article):
\documentclass[12pt,a4paper,twoside,openright,titlepage,fleqn,headsepline,headinclude,footinclude]{scrbook}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage[unicode=true,bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,breaklinks=false,colorlinks=true]{hyperref}
\usepackage[all]{hypcap}
\begin{document}
\begin{figure}
\centering
\subfloat[Who's that?]{\includegraphics[width=0.45\textwidth]{Einstein_1921_portrait2.jpg}}%
\qquad
\subfloat[Who's that?]{\includegraphics[width=0.45\textwidth]{Einstein_1921_portrait2.jpg}}
\caption{A famous scientist and his twin brother.}
\end{figure}
\end{document}