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

1 Answer

up vote 3 down vote accepted

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

\includepdf[pages={1-3}]{file}

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