[tex4ht] \autoref from hyperref with tex4ht (reborn)

Martin Heller mr_heller at yahoo.dk
Wed Sep 5 18:22:22 CEST 2012


Radhakrishnan CV wrote, on 04-09-2012 19:10:

> Sorry, I could not replicate the problem. Maybe my nameref.4ht is
> modified one. Anyway, attaching herewith denis.zip which has your above
> example document plus all output and logs. Also attaching my version of
> nameref.4ht.

This version of nameref.4ht still gives me problems with the input file 
below when compiled with

htlatex test.tex "html,4"

(this is a duplicate of the reports:
<http://tex.stackexchange.com/questions/40008/autoref-from-hyperref-with-tex4ht> 
and <http://article.gmane.org/gmane.comp.tex.tex4ht/387>, sorry)


% test.tex
\documentclass{book}
\usepackage{hyperref}

\setcounter{secnumdepth}{4}

\begin{document}
\tableofcontents

\chapter{Chapter}
\label{chap:chapter}

\section{Section}
\label{sec:section}

\subsection{Subsection}
\label{subsec:section}

\subsubsection{Subsubsection}
\label{subsubsec:section}

\begin{figure}
\caption{Figure.}
\label{fig:test}
\end{figure}

\chapter{Second Chapter}
\autoref{fig:test}\\
\autoref{chap:chapter}\\
\autoref{sec:section}\\
\autoref{subsec:section}\\
\autoref{subsubsec:section}\\

Figure~\ref{fig:test}\\
Chapter~\ref{chap:chapter}\\
Section~\ref{sec:section}\\
Subsection~\ref{subsec:section}\\
Subsubsection~\ref{subsubsec:section}

\end{document}




More information about the tex4ht mailing list