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

I'm trying to use pdfTeX to bring together several PDF documents and use the bookmarks feature of Adobe/Preview to supply a hyperlinking structure in a sidebar window. When I try this with multiple PDF files at multiple levels of indentation, the hyperlinking structure "works", but some of the links aim too low! Check out the following:


\pdfbookmark[1]{Test 0}{test0}%

\pdfbookmark[2]{Test 1}{test1}%

\pdfbookmark[3]{Test 2}{test2}%

\pdfbookmark[1]{Test 3}{test3}%

Use your favorite PDF files for Testpdf files 0, 1, 2 and 3. Compile this and then open the resulting document in either Adobe Reader or Preview and click on the bookmarks. The bookmarks for Test 0 and Test 3 work fine -- you can see the top 1.5 cm of your document -- which is what I want. However the bookmarks Test 1 and Test 2 aim too low cutting off the top of each of these pages. Any ideas how to fix this behavior? (Is it intentional?)

I'm preparing an important document and I do not want to annoy my reader (or they won't be incline to decide in my favor)!

share|improve this question
up vote 1 down vote accepted

The following should fix it, although I'm not sure whether it would break other things.


  \bookmark[level=#1,dest={#3.1}]{#2}% originally dest={#3.#1}
  \hyper@anchorstart{#3.1}\hyper@anchorend% originally #3.#1

to your document preamble after loading bookmark. The above modification fixes the destination of the hyper target to #3.1 (level 1), while the bookmark level is still dependent on the first (optional argument) and internally set using level=#1.

This is most certainly intended. Level 1 (and 0) bookmarks typically form part of full-page styles (like a \chapter or \part), while lower-level bookmarks occur in the middle of the page (like \section and \subsection). To see why this is the case, include the showframe package in your preamble. The hyperlinks from the bookmarks at levels 2 and 3 just to the first line of the text block, indicated by the border made by showframe.

share|improve this answer

\pdfbookmark hyperlink seem to aim to the top of the printable area.


solved it for me.

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.