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 am writing a book, which has a shorter version called "preview". How could I arrange (in LaTeX, xelatex) that the preview PDF remains as it is (shorter) but that it presents the TOC of the "complete" book?

A nice bonus (but not necessary) would be if the missing references from the preview TOC to non-existing pages would not have a link to the corresponding pages (which, logically, are missing from the preview, as the preview is shorter).

share|improve this question
up vote 3 down vote accepted

write the complete book and create a new document which uses package pdfpages. Then you can do a


which includes only the first pages of your book. {1-3} is the page range if the TOC is on that range.

share|improve this answer
How about pages numbered with roman numbers? I am using \frontmatter. Haven't tested your solution yet, just asking. – Flavius Mar 24 '13 at 20:20
you'll get exactly the same page layout as in the original document. – Herbert Mar 24 '13 at 20:22

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.