% !TEX root = ../manual.tex
% !TEX program = xelatexmk
% !TEX spellcheck = en_GB

\section{Getting content from different files}
When working on a large document (say, a thesis), it's often a good idea to split your document in multiple parts. When working with multiple people this also allows you to work on different parts at the same time.

The easiest way to get content from a different file is using the |\input| command, this simply uses the contents from a different file as if they were entered in the document itself.

Another option is the |\include| command, this works almost the same, but analyses the files separately and adds it after a page break. It also create an |.aux| file. |\include| cannot be used in the preamble, and cannot be used in a file that is used via |\include|. But using |\include| does allow the omission of all other |\include| commands by using |\includeonly|.

\begin{lstlisting}
\documentclass{article}
\begin{document}
% Get the content from `introduction.tex`
\input{introduction}
% Get the content from `conclusion.tex` on a new page.
\include{conclusion}
\end{document}
\end{lstlisting}

Another option is to use subfiles, this is explained very well in
\fnhref{http://en.wikibooks.org/wiki/LaTeX/Modular_Documents\#Subfiles}{the \LaTeX\ Wikibook}.
