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 get the following warning

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

when compiling the following document:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}

\title{[Title]}
\author{N.N.}

\begin{document}

\begin{titlepage}
\maketitle
\thispagestyle{empty}
\end{titlepage}

\tableofcontents
\thispagestyle{empty}

\newpage

\section{[Section]}

\end{document}

I have tried find ways to get rid of this warning by searching in other places and I have read PDFTeX destination … ignored and the other question in this place pdfTeX warning: destination with same identifier has been already used, duplicate ignored (weird behavior).

share|improve this question
1  
See this FAQ answer –  Lev Bishop May 24 '11 at 6:29
1  
I've tried what that FAQ describes without success. –  N.N. May 28 '11 at 9:15
    
Sure, the FAQ explains that when there is a separate unnumbered title page (as you have here) then the technique will not help. –  Lev Bishop Jun 2 '11 at 0:56
1  
Just came upon this thread. My problem is that the style file I'm required to use kills \thepage with the line \let\thepage\relax. I've tried the recommendation in the FAQ entry to no avail. –  Suresh Mar 26 '12 at 1:32
1  
@N.N. I answered here because both the FAQ soln here AND the answer below don't work. so I wasn't sure where to comment. –  Suresh Mar 26 '12 at 13:21

1 Answer 1

up vote 31 down vote accepted

One way to avoid the problem is to change the (invisible) numbering style of the title page:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[pdfpagelabels]{hyperref}

\title{[Title]}
\author{N.N.}

\begin{document}

\pagenumbering{Alph}
\begin{titlepage}
\maketitle
\thispagestyle{empty}
\end{titlepage}
\pagenumbering{arabic}

\tableofcontents
\thispagestyle{empty}

\newpage

\section{[Section]}

\end{document}
share|improve this answer
24  
Another way to solve it is to disable the pageanchors for the titlepage with \hypersetup{pageanchor=false} and reactivate them later. –  Ulrike Fischer May 24 '11 at 8:03
    
Works like a charm. Thanks! –  N.N. May 24 '11 at 15:31
1  
@UlrikeFischer: I see the difference in the PDF file between the two solutions (the one answered and yours), but which one would be a best practice? –  sirdharma Oct 18 '11 at 3:48
5  
@sirdharma: It is a matter of taste. hyperref needs page anchors with unique names. Changing the page numbering style as Enrico did here is a logical and adequate method to do it. On the other side: If there is a part of your document where you don't need or want links, disabling anchors and links completly is also adequate. Chose whatever you like best. –  Ulrike Fischer Oct 18 '11 at 8:12
    
u could use \setcounter{page}{1} if you faced problems with starting the page number at 1 –  Amait Feb 11 '13 at 9:00

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.