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 my thesis in Lyx and for some reason, probably due to the style sheet, I am unable to print the complete thesis. It gives weird errors. However, individually all chapters are easily converted to PDF.

Is there a command that allows printing only a few selected chapters but does not affect referencing? I could then restart page numbering and get a quick fix to the problem.

Please advise.

share|improve this question

Use \includeonly


%\includeonly{Introduction}% uncomment this line if you want to include chapter "Introduction" only without affecting the referencing.

share|improve this answer
I was inspired by a comment in this tex.stackexchange.com/q/22109/2099. :-) – xport Jul 11 '11 at 6:34

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.