[Tex/LaTex] How to insert one latex document into another.

document-configurationincludeinput

This is probably online but I am not sure how to word the search. I have a long latex document, and it is getting messy editing it, is there a way to split the chapters into separate latex documents and insert like a reference to them in the main document such that when the main document is build they will show in the pdf.

Thanks.

Best Answer

use \input{firstfile}

see http://web.science.mq.edu.au/~rdale/resources/writingnotes/latexstruct.html for more information.