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
\label
and\ref
between different chapters, using different chapter files?
standalone
package for #1. For #2 see thexr pacakge
, an example of which is Does hyperref work between two files?.\includeonly{chapter2}