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.

Possible Duplicate:
Incorrect bookmarks and page number in table of contents

I've created a table of contents with links to each chapter and section. I use this package

\usepackage[colorlinks=true,urlcolor=red,citecolor=blue,linkcolor=blue]{hyperref}

and I use this for bibliography

\addcontentsline{toc}{chapter}{\bibname}
\begin{thebibliography}{99}
\bibitem{} bla bla bla
\end{thebibliography}

If I click on the item in table of contents, the bibliography's link is wrong: it is linked to the previous page.

How I can fix this problem?

share|improve this question
add comment

marked as duplicate by egreg, percusse, lockstep, Marco Daniel, Stefan Kottwitz Jun 25 '12 at 10:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

This is discussed in the hyperref manual. Basically hyperref needs an anchor to produce the correct link. Add \phantomsection before \addcontentsline to provide one.

share|improve this answer
add comment

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