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.

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

Can hyperref make anchors with arbitrary name? After \currentpdfbookmark{\contentsname}{toc} \tableofcontents I got PDF that can be linked like http://some.where/filename.pdf#nameddest=toc.1. However, ".1" feels unnecessary.

share|improve this question
up vote 2 down vote accepted

To cite the hyperref manual: "As name for the internal anchor name is used (in conjunction with level)." So the .1 is the level of the bookmark. Reading through the source of hyperref and bookmark this behaviour is hard coded.

In principle you could get rid of the level in the label with


but I doubt this is a good idea.

share|improve this answer

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.