TeX/includeonly
From Wikibooks, the open-content textbooks collection
< TeX
[edit] Synopsis
\includeonly{filename1.tex, filename2.tex, ...}
[edit] Description
When writing a large document, it is sometimes useful to work on selected sections of the document. In LaTeX, the command
\includeonly{filename1.tex, filename2.tex, ...}
will result in only the files specified between the brackets being compiled. It is paired with the \include command: the \includeonly command should only be placed in the preamble of the LaTeX file, whilst the \include commands should only be placed in the main body. If \includeonly is not specified in the preamble LateX will assume that all \include commands should be evaluated.
The syntax for an \include command is pretty simple:
\include{filename.tex} \include{filename}
(the two are equivalent)
but note \include differs slightly from \input:
1. it may only be used after the \begin{document} command
2. it acts like \clearpage \input{} \clearpage
3. if filename does not exist, it will not cause a crash
http://www-hermes.desy.de/latex/ltx-165.html