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

The Manual of hyperref states that hypertexnames: use guessable names for links.

What does this mean? What are the consequences of using this option?

share|improve this question
up vote 20 down vote accepted

With the option hypertexnames hyperref uses the corresponding counter in addition to the link type to construct the link name. Imagine, you have two chapters and one section in each chapter plus one table. The link names would be:

With hypertexnames:


Without hypertexnames:


Without hypertexnames it's just counting upwards, using the \Hy@linkcounter instead of the corresponding chapter resp. section counter. It's similar for other objects and links to them.

Thus, with hypertexnames you could guess the link name, if you would like to use it for referencing, from the corresponding counter value instead of a shared counter.

Looking for hypertexnames in hyperref.sty gives further information, for instance in the definition of the command \hyper@makecurrent. But you could also take a quick look into the .aux, .toc, .lot etc. files to notice the different kind of link names.

share|improve this answer
The counting done with hypertexnames enabled (which is the default) can get you into troubles if you are e.g. resetting chapter counters for the various parts of your book. The counting done with hypertexnames=false isn't "guessable", but more robust. Check out this question... – DevSolar Sep 27 '11 at 11:29

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.