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.

I try to use hyperref with pagebackref to get a page number and a link for each of my references. My first pages have roman numbers (title page, ...), later on I switch to arabic numbers. For whatever reason the links in the references have the right page number but the link is wrong (somehow a negative offset).

I have a minimal example:

\documentclass[a4paper, 12pt, twoside]{report}
\usepackage[latin1]{inputenc} 
\usepackage[T1]{fontenc}
\usepackage[english,ngerman]{babel}
\usepackage[left=4cm,top=3cm,right=3cm,bottom=4cm]{geometry}
\usepackage[pdftex, plainpages=false, hypertexnames=false, pdfpagelabels=true,
    hyperindex=true, linktocpage, pagebackref=true, pdfa=true]{hyperref}

\begin{document}
\pagenumbering{roman}
\pagestyle{empty}
Titel

\setcounter{page}{1}
\tableofcontents
\newpage

\pagenumbering{arabic}
\pagestyle{plain} 
\chapter{one}
\section{one}
\newpage

\section{two}
Zitation~\cite{citation_key}

\bibliographystyle{plain}
\begin{thebibliography}{widest-label}
    \bibitem{citation_key}Autor: Titel. Verlag, Jahr.
\end{thebibliography}
  \end{document}

Any ideas?

share|improve this question
    
You have two pages numbered i; better say \pagenumbering{alph} for the title page and \pagenumbering{roman} in place of \setcounter{page}{1}. Remember to always leave an empty line after a bibliography entry. –  egreg Jun 7 '12 at 20:56
add comment

1 Answer 1

I got a solution.

the hyperref option hypertexnames must be set to true (the default value).

In the first place this caused other problems with my template

(pdfTeX warning (ext4): destination with the same identifier (name{...}) has been already used, duplicate ignored ).

I could solve this problems using \Roman pagenumbering for the title page and similar, \roman pagenumbering for table of content and similar and \arabic pagenumbering for the rest of the document.

Tobias

share|improve this answer
2  
Many thanks Tobias, your little answer saved me where dozens of others failed. \hypersetup{hypertexnames=true} does the trick! –  RobinLovelace Sep 2 '13 at 17:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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