FormaTeX
latexmk6 pages2.98s compile76.8 KB

PhD Dissertation LaTeX Template

Premium book-class dissertation with a dark title page, tcolorbox theorem environments, custom chapter/section styling, colored running headers, and half-line spacing.

Download PDF
\source{phd-thesis}
\documentclass[12pt,a4paper]{book}
\usepackage[top=2.5cm,bottom=2.8cm,left=3cm,right=2.5cm,bindingoffset=0.5cm]{geometry}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{microtype}
\usepackage{hyperref}
\usepackage{tikz}
\usepackage{booktabs}
\usetikzlibrary{calc}

\tcbuselibrary{theorems,skins,breakable}

% ── Color palette ─────────────────────────────────────────────────────────────
\definecolor{accent}{HTML}{1D4ED8}
\definecolor{accentdark}{HTML}{1E3A8A}
\definecolor{darktext}{HTML}{111827}
\definecolor{subtext}{HTML}{6B7280}
\definecolor{rulecol}{HTML}{BFDBFE}
\definecolor{thmcol}{HTML}{1E40AF}
\definecolor{defcol}{HTML}{065F46}

\hypersetup{colorlinks=true,linkcolor=accent,urlcolor=accent,citecolor=accent}
\onehalfspacing

% ── Chapter title style ───────────────────────────────────────────────────────
\titleformat{\chapter}[display]
  {\normalfont\Huge\bfseries\color{darktext}}
  {\textcolor{accent}{\small\MakeUppercase{\chaptertitlename}}\hspace{6pt}%
   \textcolor{accent}{\rule[-0.2ex]{0.6pt}{1.6ex}}\hspace{6pt}%
   \textcolor{accent}{\Large\thechapter}}
  {12pt}
  {}
  [\vspace{4pt}\textcolor{rulecol}{\rule{\linewidth}{0.6pt}}]
\titlespacing{\chapter}{0pt}{-20pt}{20pt}

\titleformat{\section}
  {\large\bfseries\color{darktext}}
  {\textcolor{accent}{\thesection}}{0.6em}{}
  [\vspace{1pt}\textcolor{rulecol}{\rule{\linewidth}{0.4pt}}]
\titlespacing{\section}{0pt}{14pt}{5pt}

% ── Theorem environments ──────────────────────────────────────────────────────
\tcbset{
  thmstyle/.style={
    enhanced,breakable,
    fonttitle=\bfseries\small,
    left=8pt,right=8pt,top=5pt,bottom=5pt,arc=3pt,boxrule=0.5pt,
    colback=#1!5,colframe=#1!65!black,
    attach boxed title to top left={yshift=-2.5mm,xshift=5mm},
    boxed title style={colback=#1!65!black,arc=2pt,boxrule=0pt}
  }
}
\newtcbtheorem[number within=chapter]{theorem}{Theorem}
  {thmstyle=thmcol}{thm}
\newtcbtheorem[use counter from=theorem]{definition}{Definition}
  {thmstyle=defcol}{def}
\newtcbtheorem[use counter from=theorem]{corollary}{Corollary}
  {thmstyle=thmcol!70}{cor}

% ── Headers/footers ───────────────────────────────────────────────────────────
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE]{\small\textcolor{subtext}{\textit{Deep Learning for Scientific Document Understanding}}}
\fancyhead[RO]{\small\textcolor{subtext}{\leftmark}}
\fancyfoot[C]{\small\textcolor{subtext}{\thepage}}
\renewcommand{\headrulewidth}{0.3pt}
\renewcommand{\headrule}{\hbox to\headwidth{\color{rulecol}\leaders\hrule height\headrulewidth\hfill}}

\begin{document}

% ── Title page ────────────────────────────────────────────────────────────────
\begin{titlepage}
\begin{tikzpicture}[remember picture,overlay]
  \fill[accentdark]
    (current page.north west)
    rectangle ([yshift=-5cm]current page.north east);
  \fill[accent]
    ([yshift=-5cm]current page.north west)
    rectangle ([yshift=-5.06cm]current page.north east);
  \fill[accentdark!20]
    ([yshift=-0.8cm]current page.south west)
    rectangle (current page.south east);
\end{tikzpicture}

\centering
\vspace*{1.2cm}
{\color{white}\Large\bfseries Deep Learning for Scientific\\[8pt]
Document Understanding}\par
\vspace{0.8cm}
{\color{rulecol}\rule{6cm}{0.6pt}}\par
\vspace{1cm}

\vspace{4cm}
{\large A.~J.~Martinez}\par
\vspace{0.4cm}
{\normalsize\textcolor{subtext}
  A dissertation submitted in partial fulfilment of the requirements\\
  for the degree of \textit{Doctor of Philosophy}}\par
\vspace{0.8cm}
{\normalsize\textcolor{subtext} Department of Computer Science\\
  University of Cambridge}\par
\vspace{0.4cm}
{\normalsize\textcolor{subtext} 2025}
\end{titlepage}

\frontmatter
\tableofcontents

\mainmatter

\chapter{Introduction}

The automatic understanding of scientific documents presents unique challenges at the intersection of natural language processing and mathematical reasoning. Modern transformer-based architectures have demonstrated remarkable ability to process structured text, yet the rich symbolic language of mathematics — with its equations, theorems, and logical dependencies — remains an open frontier.

This dissertation makes three primary contributions:
\begin{enumerate}
  \item A novel multimodal encoder for joint text and formula understanding.
  \item A large-scale benchmark of \num{100000} annotated scientific papers.
  \item State-of-the-art results on three downstream reasoning tasks.
\end{enumerate}

\chapter{Background}

\begin{definition}{Transformer Architecture}{transformer}
  A \emph{transformer} is a sequence-to-sequence model built entirely from
  self-attention and feed-forward layers, without recurrence.
  Given input embeddings $\mathbf{X}\in\mathbb{R}^{n\times d}$, the multi-head
  attention output is:
  \[
    \mathrm{Attention}(Q,K,V) = \mathrm{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right)V.
  \]
\end{definition}

\begin{theorem}{Universal Approximation for Transformers}{universal}
  Transformers with sufficient depth and width can approximate any
  continuous sequence-to-sequence function on compact domains to
  arbitrary precision.
\end{theorem}

\end{document}

Source requires Pro

latexmk templates are available on the Pro plan and above.

See the compiled PDF

No API key required

latexmk

\usepackage{used}

LaTeX packages used

\geometryPage margins and layout control
\amsmathAdvanced math environments and commands
\amsthmTheorem, lemma, and proof environments
\amssymbAMS symbol fonts and extra math symbols
\xcolorColor definitions and usage
\tcolorboxColored and framed text boxes
\titlesecSection and heading formatting
\fancyhdrCustom headers and footers
\setspaceLine spacing control
\microtypeMicro-typographic enhancements (kerning, tracking)
\hyperrefHyperlinks and PDF metadata
\tikzDrawing diagrams and vector graphics
\booktabsProfessional-quality table formatting

\section{related}

More Academic templates

\compile{instantly}

Customize and compile instantly

Load this template into the playground, edit, and see your PDF in seconds.