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'd like to prepare a LaTeX file of a part of a larger volume, containing for example pages from 50 to 60. Is there a way to do it so that a pdf viewer does not display "1" but "50" on the first page and so on? I tried \setcounter{page}{49}, but it didn't work.

share|improve this question
Simply loading hyperref does this for me. – Martin Scharrer Jul 12 '11 at 22:20
Thanks a lot, I didn't think about it - of course it works! – mbork Jul 13 '11 at 20:13
up vote 10 down vote accepted

This can be achieved by loading the hyperref package. It will store the logical page numbers as page labels in the PDF. This also allows for non-numeric labels like roman numbers for the frontmatter.

share|improve this answer
If you don't want hyperref's hyperlinks to show up, load it as \usepackage[hidelinks]{hyperref}. For more details on its various functions, check out the hyperref manual. – doncherry Jul 13 '11 at 21:31
Good point! Since I'm only loading some pages from another pdf using the pdfpages package, this is not needed in my case; but thanks anyway for the tip, I (or someone) might need it some day;), and the hyperref manual is rather large... – mbork Jul 13 '11 at 21:55

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.