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)?








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.

| 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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.