For a large project, I'd like to write each chapter on it's own. After that, I'd wish (of course) to incorporate all the chapters in a base document (the large project). I've heard ob \include and \input, but they don't seem to do what I'm searching for:
Is it possible to include/input only the part between
\begin{document}end\end{document}of the chapter files, so that it's possible to compile the chapter files separately (to be able to check and work on the chapter file) before compiling it in the base document? I know this would be possible by simply deleting the preample of the chapter files, but with a dozen of chapter files, I prefer an automated way (if possible).Is it possible to make references to
\labeland\refbetween different chapters, using different chapter files?
standalonepackage for #1. For #2 see thexr pacakge, an example of which is Does hyperref work between two files?. – Peter Grill May 01 '14 at 07:09\includeonly{chapter2}– David Carlisle May 01 '14 at 11:36