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 working on a longish document and am often working on sections in the middle, so that after compiling I have to do a fair bit of digging to find the bit I was working on. After a while this can get quite tiresome, particularly with tricky bits that require multiple compilations to chase up details.

I am using the hyperref package and I know that I can set the starting page using a sequence like


While that works, I would like a method where I can leave the preamble alone and then just move around some label, say


Is this possible? As a secondary question: is it possible to control where in the starting view this anchor appears (i.e. at the top vs at the bottom)?

share|improve this question







The order does matter. hyperref sets the start page in \AtBeginDocument, therefore setting pdfstartpage must be done before. But it cannot be done in the preamble, because the .aux file is not yet read.

share|improve this answer
Thanks! is there a way to put the \zlabel at the bottom of the starting view? – E.P. Sep 6 '12 at 18:43
The \zlabel is only used to get the absolute page number. There is option pdfstartview to configure the view. – Heiko Oberdiek Sep 6 '12 at 19:13

Here is a version with which will place the screen conveniently above the reference, which should be given as


Then, changing the corresponding code in Heiko's answer to

    pdfstartview={XYZ 0 \pointoffset 1}

works fine. I'm aware that there are a number of technical difficulties which I'm working on (particularly that "here" might not be defined, and the need for two different labels) for a future update.

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.