Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm observing strange behavior with hyperref and the \tableofcontents. Clicking on List of Tables or Synopsis takes me to the Preface page. Perhaps it has something to do with \chapter* titles for these sections.

\documentclass{amsbook}
\usepackage[hypertexnames=false]{hyperref}

\begin{document}

\chapter*{Preface}

\tableofcontents
\listoftables

\chapter*{Synopsis}
\section{Section Title}

\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}

\end{document}
share|improve this question
1  
See the similar question and answer here: Incorrect bookmarks and page number in table of contents. –  Stefan Kottwitz Jul 20 '11 at 9:22

1 Answer 1

up vote 10 down vote accepted

Add \cleardoublepage\phantomsection before \listoftables.

A \phantomsection seems not to be necessary before \chapter*. The amsbook class is slightly different from book, in that it puts all chapters, numbered or not, in the table of contents. This also creates correctly the anchors for them, but \listoftables and \listoffigures don't use \chapter* internally and so the anchors for them are not created.

It's also good to load the bookmark package after hyperref: it simplifies bookmark management.

share|improve this answer
    
This worked perfectly. Thank you! –  user02138 Jul 20 '11 at 9:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.