[Tex/LaTex] Link to Appendix (from anywhere in the document) goes to the wrong place.

hyperreflinks

I have several chapters and several appendices. I am using the hyperref package, and everything is numbered (all the chapters, appendices, etc…) My appendices also have sections within them and I refer to those sections in the text.

All the links to the appendices or anywhere in them go to the wrong place. For example, my toc links to appendix 1 go to chapter 1, not appendix 1. Links to appendix 2 go to chapter 2, etc… Also, links to sections within an appendix go to a random page in the chapter in the document (not to the appendix).

This is somewhat urgent so any help is greatly appreciated.

If I can't make the links work, is there a way to disable the linking just for appendices? Links work fine all over the document otherwise.

Best Answer

And use

\renewcommand{\theHsection}{A\arabic{section}}

if you have the same trouble with the article class. For more information, the hyperref manual explains how hyperref modifies important LaTeX counters (sections, chapter, ...) into \theH<counter> for referencing.

Related Question