Skip to content

About

A clean, modular LaTeX template for UCL theses

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

UCL Thesis Template

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.

Preview of the compiled thesis

Quick Start

  1. Clone the repository

    git clone <this-repo-url> my-thesis
    cd my-thesis
  2. Fill in your details in thesis.tex:

    \title{Your Thesis Title}
    \author{Your Name}
    \department{Your Department}
  3. Compile

    latexmk -pdf thesis.tex

    The compiled PDF appears at build/thesis.pdf.

  4. Start writing — edit the files in content/.

Repository Structure

.
├── 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)

How It Works

Compilation

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 artifacts

The Main File (thesis.tex)

This is the root document. It loads the document class, preamble, and all content files in order:

  1. Front matter: title page, quote, declaration, abstract, impact statement, publications, acknowledgements, table of contents
  2. Main content: introduction, chapters, conclusions
  3. End matter: bibliography, appendices

Each chapter is loaded with \include{...}, which starts a new page and enables selective compilation via \includeonly{...}.

Adding a New Chapter

  1. Create the folder structure:

    mkdir -p content/chapter_3/figures
  2. Create content/chapter_3/commands.tex:

    \DeclareRobustCommand{\chThreeTitle}{Your Full Chapter Title}
    \DeclareRobustCommand{\chThreeTocTitle}{Short Title for ToC}
    \DeclareRobustCommand{\chThreeHeader}{Short Title for Headers}
  3. Create content/chapter_3/chapter.tex:

    \chapter[\chThreeTocTitle]{\chThreeTitle}
    \chaptermark{\chThreeHeader}
    \label{ch:three}
    
    \section{Introduction}\label{sec:ch3-intro}
    Your content here...
  4. Create content/chapter_3/appendix.tex (if needed):

    \section{Supplementary Material}\label{appx:ch3-supplementary}
    Your appendix content here...
  5. 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}

Chapter Title Commands

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}

Cross-Referencing

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"

Citations

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 inline

Add references to bibliography.bib in standard BibTeX format.

Figures

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.

Custom Commands

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

Document Class Options

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)

Optional Sections

Some front matter sections are optional. To remove them:

  • Opening quote: delete \input{content/quote} from thesis.tex
  • Publications arising: delete \input{content/publications/publication_statement} from thesis.tex
  • Publication declarations: these are commented out by default in content/appendix/appendix.tex; uncomment if needed

Requirements

  • A LaTeX distribution with pdflatex (e.g., TeX Live, MacTeX)
  • biber (usually included with TeX Live / MacTeX)
  • latexmk (usually included with TeX Live / MacTeX)

Disclaimer

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.

About

A clean, modular LaTeX template for UCL theses

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages