A clean, modular LaTeX template for UCL MRes, MPhil, and PhD theses. Based on the original UCL thesis template.
The template is designed to be highly modular — each chapter is self-contained in its own directory with separate files for content, commands, appendix material, and figures. This makes it well suited for large thesis documents where keeping everything in a single file becomes unwieldy.
-
Clone the repository
git clone <this-repo-url> my-thesis cd my-thesis
-
Fill in your details in
thesis.tex:\title{Your Thesis Title} \author{Your Name} \department{Your Department}
-
Compile
latexmk -pdf thesis.tex
The compiled PDF appears at
build/thesis.pdf. -
Start writing — edit the files in
content/.
.
├── thesis.tex # Root document — controls compilation order
├── bibliography.bib # All references (BibTeX format)
├── .latexmkrc # Configures latexmk (output → build/)
├── .gitignore # Ignores LaTeX build artifacts
│
├── settings/ # LaTeX configuration (don't touch often)
│ ├── ucl_thesis.cls # UCL thesis document class
│ ├── preamble.tex # Custom commands, hyperref, theorem envs
│ ├── main_packages.tex # All package imports
│ └── float_settings.tex # Figure/table placement tuning
│
└── content/ # All thesis content lives here
├── abstract.tex # Thesis abstract (300 words max)
├── quote.tex # Opening epigraph (optional)
├── acknowledgements.tex # Acknowledgements
├── impact_statement.tex # UCL impact statement (required)
│
├── introduction/
│ └── introduction.tex # Introduction chapter (Chapter 0 by default)
│
├── chapter_1/ # Each chapter is self-contained
│ ├── commands.tex # Chapter title commands + local shortcuts
│ ├── chapter.tex # Main chapter body
│ ├── appendix.tex # Chapter-specific appendix material
│ └── figures/ # Figures for this chapter
│
├── chapter_2/ # Same structure for each chapter
│ ├── commands.tex
│ ├── chapter.tex
│ ├── appendix.tex
│ └── figures/
│
├── conclusions/
│ └── conclusions.tex # General discussion and conclusions
│
├── publications/ # Publication declarations (if applicable)
│ ├── publication_statement.tex
│ └── declaration.tex # UCL Research Paper Declaration Forms
│
└── appendix/
└── appendix.tex # Master appendix file (includes all chapter appendices)
The template uses latexmk with pdflatex and biber (for bibliography). The .latexmkrc file directs all build artifacts to a build/ directory to keep the project root clean.
latexmk -pdf thesis.tex # Full build
latexmk -pvc thesis.tex # Continuous build (recompiles on save)
latexmk -C thesis.tex # Clean all build artifactsThis is the root document. It loads the document class, preamble, and all content files in order:
- Front matter: title page, quote, declaration, abstract, impact statement, publications, acknowledgements, table of contents
- Main content: introduction, chapters, conclusions
- End matter: bibliography, appendices
Each chapter is loaded with \include{...}, which starts a new page and enables selective compilation via \includeonly{...}.
-
Create the folder structure:
mkdir -p content/chapter_3/figures
-
Create
content/chapter_3/commands.tex:\DeclareRobustCommand{\chThreeTitle}{Your Full Chapter Title} \DeclareRobustCommand{\chThreeTocTitle}{Short Title for ToC} \DeclareRobustCommand{\chThreeHeader}{Short Title for Headers}
-
Create
content/chapter_3/chapter.tex:\chapter[\chThreeTocTitle]{\chThreeTitle} \chaptermark{\chThreeHeader} \label{ch:three} \section{Introduction}\label{sec:ch3-intro} Your content here...
-
Create
content/chapter_3/appendix.tex(if needed):\section{Supplementary Material}\label{appx:ch3-supplementary} Your appendix content here...
-
Register the chapter in three places:
settings/preamble.tex— add near the bottom:\input{content/chapter_3/commands}
thesis.tex— add in the main content section:\include{content/chapter_3/chapter}
content/appendix/appendix.tex— add the appendix:\chapter{Appendix to \Cref{ch:three}} \label{appx:ch3} \input{content/chapter_3/appendix}
Each chapter uses three title variants to handle LaTeX's different contexts:
| Command | Purpose | Example |
|---|---|---|
\chOneTitle |
Full title on the chapter's opening page | "A Long and Descriptive Chapter Title" |
\chOneTocTitle |
Short title in the Table of Contents | "Short Title" |
\chOneHeader |
Short title in running page headers | "Short Title" |
These are defined in each chapter's commands.tex file using \DeclareRobustCommand (which prevents issues when LaTeX writes them to auxiliary files).
Usage in the chapter file:
\chapter[\chOneTocTitle]{\chOneTitle}
\chaptermark{\chOneHeader}The template uses the cleveref package for intelligent cross-references:
\Cref{ch:one} % → "Chapter 1"
\Cref{fig:ch1-example} % → "Figure 1.1"
\Cref{eq:ch1-example} % → "Equation (1.1)"
\Cref{appx:ch1} % → "Appendix A"The template uses biblatex with the authoryear style and biber backend:
\textcite{example2024paper} % → "Lastname and Coauthor (2024)"
\parencite{example2024paper} % → "(Lastname and Coauthor, 2024)"
\fullcite{example2024paper} % → Full bibliography entry inlineAdd references to bibliography.bib in standard BibTeX format.
Place figures in each chapter's figures/ directory and reference them with paths relative to the project root:
\begin{figure}[!htbp]
\centering
\includegraphics[width=0.8\textwidth]{content/chapter_1/figures/my_figure.pdf}
\caption[Short caption]{Long detailed caption.}
\label{fig:ch1-my-figure}
\end{figure}PDF figures are preferred for vector graphics (plots, diagrams). PNG/JPG work for photographs or raster images.
Defined in settings/preamble.tex (global) or content/chapter_X/commands.tex (chapter-specific):
| Command | Description |
|---|---|
\argmax, \argmin |
Math operators |
\nb{label}{color}{text} |
Coloured note box (useful during drafting) |
\addcitation |
Blue "cite" marker for missing references |
\checkbox{Checked} |
Checked/unchecked box symbols |
| Theorem environments | theorem, proposition, lemma, corollary, definition, assumption, remark |
| Custom colours | myGreen, myBlue, myPurple, myTeal, myLime |
Set in thesis.tex on the \documentclass line:
| Option | Description |
|---|---|
phd |
Doctor of Philosophy (default) |
mphil |
Master of Philosophy |
mres |
Master of Research |
12pt |
Font size (10pt and 11pt also supported) |
twoside |
Double-sided printing (default) |
oneside |
Single-sided printing |
draft |
Draft mode (shows overfull boxes, doesn't load images) |
Some front matter sections are optional. To remove them:
- Opening quote: delete
\input{content/quote}fromthesis.tex - Publications arising: delete
\input{content/publications/publication_statement}fromthesis.tex - Publication declarations: these are commented out by default in
content/appendix/appendix.tex; uncomment if needed
- A LaTeX distribution with
pdflatex(e.g., TeX Live, MacTeX) biber(usually included with TeX Live / MacTeX)latexmk(usually included with TeX Live / MacTeX)
This template is provided as-is with no guarantee that it matches UCL's official formatting guidelines. For the official requirements, see the UCL Doctoral School thesis preparation guidance.
