TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When using two parts in my document and resetting the counter for the second one, I get the following warning:

destination with the same identifier (name{section.1}) has been already used, duplicate ignored

A minimal example:





\part{Part 1}
\section{Section 1-1}
\part{Part 2}
\section{Section 2-1}


How can I get rid of this warning?

share|improve this question
up vote 9 down vote accepted

Redefining the internal presentation of the section counter for hyperref helps, for example:


The error came because the section counter is not unique, you have two sections with the number 1, one in each part. The redefinition above makes the internal presentation to 1.2 and 2.1, thus unique and allowing unique hyperlinks, not visible in the output.

The error would also go away if you number section per part, for example

\usepackage{amsmath}% perhaps you already use it



So if you refer to section 1 it's clear if the one of Part 1 or Part II is meant.

share|improve this answer
\renewcommand* worked like a charm! (I did not try the alternatives) Only a backslash is missing: \renewcommand*{\theHsection}{\thepart.\thesection} – Matthias Jul 5 '11 at 13:19
@Matthias: good, corrected! – Stefan Kottwitz Jul 5 '11 at 14:21

Your Answer


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.