Take the 2-minute tour ×
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.

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
3  
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
add comment

1 Answer

up vote 9 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
5  
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
add comment

Your Answer

 
discard

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.