[pdftex] Hyperref: Problems w/ pagebackref and pdfpagelabels

Berthold Crysmann crysmann at dfki.de
Tue Dec 18 16:59:31 CET 2001


Heiko Oberdiek wrote:

> On Mon, 17 Dec 2001, Berthold Crysmann wrote:
>
> > In a document using the book class (with frontmatter and mainmatter) I
> > load hyperref with
> >
> > plainpages=false
> > pdfpagelabels
> >
> > With these options, there's no problem having the page counter reset at
> > the beginning of the first real chapter (toc etc. have roman page
> > numbers).
> >
> > pagebackref however sets the hyperlink tom the wrong page number.
> >
> > Example:
> >
> > 6 pages frontmatter in roman
> > then counter reset and mainmatter in arabic
>
> A minimal test file would be of more help.
> With your informations I get a correct file:
>
> \documentclass{book}
> \usepackage[plainpages=false,pdfpagelabels,pagebackref]{hyperref}
> \begin{document}
> \frontmatter
> Hello World (frontmatter): \cite{a}
> \mainmatter
> Hello World (mainmatter): \cite{a}
> \chapter{Chapter}
> \cite{a}
>
> \begin{thebibliography}{999}
> \bibitem{a} Foo bar
>
> \end{thebibliography}
> \end{document}
>

Thanks for your reply. I finally figured out what the problem was: I've
loaded natbib before hyperref, and that doesn't seem to work.
Loading hyperref first, and then natbib gives correct results.

Berthold





>
> Yours sincerely
>   Heiko <oberdiek at uni-freiburg.de>
>
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex

--
Berthold Crysmann
Deutsches Forschungszentrum Kuenstliche Intelligenz (DFKI) GmbH
Stuhlsatzenhausweg 3
D-66123 Saarbruecken






More information about the pdftex mailing list