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

1 Answer

Use \includeonly

\documentclass{book}

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

\begin{document}
\include{Introduction}
\include{Summary}
\end{document}
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
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.