[OS X TeX] hyperref and endnotes/bibliography

Wolfgang Schmidle Wolfgang.Schmidle at sunderland.ac.uk
Fri Apr 28 05:51:16 EDT 2006


Wolfgang Schmidle schrieb [edited]:
> I have a problem with hyperref. In my preamble I have the line
> \newpage \addcontentsline{toc}{chapter}{\numberline{}Bibliography}
> before the bibliography command. However, clicking on Bibliography 
> brings me to the wrong page.

I have made a minimal example now. With "\addcontentsline" at position 
A, the toc entry is correct, but hyperref refers to the wrong page. At 
position B, hyperref works correctly, but the page in the toc entry is 
wrong.

Wolfgang


\documentclass{report}
\usepackage{natbib}
\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=blue]{hyperref}

\begin{document}
\tableofcontents
\newpage
Text
\newpage

\addcontentsline{toc}{chapter}{\numberline{}Bibliography} % position A

\begin{thebibliography}{2}
\bibitem[{Abeles(1991)}]{Abeles1991}
M.~Abeles (1991).
\newblock \emph{Corticonics: Neural circuits of the cerebral cortex}.
\newblock Cambridge University Press, Cambridge, England

\newpage % to simulate many bib items

\bibitem[{Allerton(1982)}]{Allerton1982}
D.~J. Allerton (1982).
\newblock \emph{Valency and the English Verb}.
\newblock Academic Press, London
\end{thebibliography}

% \addcontentsline{toc}{chapter}{\numberline{}Bibliography} % position B

\end{document}

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list