I'm using the hyperref package in LaTeX. In the compiled PDF, in the table of contents (TOC), I correctly get all the links to the corresponding chapters and sections.
There is only one chapter which I typed as
\chapter{Proof of Theorem \ref{thm:myTHM}}
that does not produce a working link. The problem is that also the reference to the Theorem (thm:myTHM) produces a link. In the TOC only the link to the theorem is working when I click on the number produce by \ref{thm:myTHM}.
Is there a way to produce a working link to the chapter even if I have a \ref{} in the chapter title? It would be nice to have both links working, i.e. If I click e.g. on "Proof of Theorem " I should jump to the chapter and if I click on the number produced by \ref{thm:myTHM} I should jump to the theorem from the TOC.
\refin a chapter or other title needs to be preceded by\protectfor other reasons (e.g. correct running heads), because those headings are moving arguments. perhaps adding\protectwould solve this problem as well. – barbara beeton Nov 27 '12 at 14:35