Documentation/Thesis & Long Documents/How to Split Your Thesis into Chapter Files
Thesis & Long Documents

How to Split Your Thesis into Chapter Files

Writing an entire thesis in a single .tex file quickly becomes unmanageable. Splitting your document into separate files per chapter makes it easier to navigate, collaborate, and compile selectively.

Project Structure

Create a folder structure with a main file and separate chapter files:

% Recommended folder structure:
% thesis/
%   main.tex          <- master file
%   preamble.tex      <- packages and settings
%   chapters/
%     introduction.tex
%     literature.tex
%     methodology.tex
%     results.tex
%     conclusion.tex
%   figures/
%   references.bib

Main File with \include

Use \include for chapters (starts new page, works with \includeonly) and \input for preamble:

% main.tex
\documentclass[12pt]{report}
\input{preamble}  % Load packages and settings

\begin{document}
\frontmatter
\include{chapters/titlepage}
\tableofcontents

\mainmatter
\include{chapters/introduction}
\include{chapters/literature}
\include{chapters/methodology}
\include{chapters/results}
\include{chapters/conclusion}

\backmatter
\bibliographystyle{plain}
\bibliography{references}
\end{document}

Chapter File Format

Each chapter file contains just the chapter content — no \documentclass or \begin{document}:

% chapters/introduction.tex
\chapter{Introduction}
\label{ch:introduction}

This thesis investigates...

\section{Background}
The problem of...

\section{Research Questions}
\begin{enumerate}
  \item How does...
  \item What is the effect of...
\end{enumerate}

💡 Tips

  • Use \include for chapters (auto page break) and \input for smaller fragments (no page break)
  • \includeonly{chapters/results} in the preamble compiles only that chapter — huge time saver
  • Don't nest \include inside \include — it doesn't work. Use \input for nested files
  • Keep your preamble in a separate file to keep main.tex clean

Try This in Bibby AI

Write LaTeX faster with AI auto-complete and instant compilation.

Start Writing Free

Related Tutorials

How to Split Your Thesis into Chapter Files | Bibby AI