Skip to main content
Split large projects into focused files to improve maintainability and collaboration.
project/
|- main.tex
|- preamble.tex
|- chapters/
|  |- 01-introduction.tex
|  |- 02-methods.tex
|  |- 03-results.tex
|- appendices/
|  |- appendix-a.tex
|- refs.bib

input vs include

  • \input{file} inserts content inline.
  • \include{file} starts on a new page and works with \includeonly.
main.tex
\documentclass{report}
\input{preamble}

\begin{document}
\tableofcontents
\include{chapters/01-introduction}
\include{chapters/02-methods}
\include{chapters/03-results}
\appendix
\input{appendices/appendix-a}
\end{document}

Faster Draft Builds

includeonly.tex
\includeonly{chapters/02-methods}