> ## Documentation Index
> Fetch the complete documentation index at: https://resources.latex-cloud-studio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Multi-file LaTeX Projects

> Organize large LaTeX projects with input, include, and subfiles for theses, books, and reports.

Split large projects into focused files to improve maintainability and collaboration.

## Recommended Structure

```
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`.

```latex main.tex theme={null}
\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

```latex includeonly.tex theme={null}
\includeonly{chapters/02-methods}
```

## Related Pages

* [Managing large documents](/learn/latex/how-to/large-documents)
* [Table of contents](/learn/latex/document-structure/table-of-contents)
* [Cross-referencing](/learn/latex/cross-referencing)
