A PhD and master's thesis template in LaTeX
This thesis LaTeX template is a lean skeleton for a PhD dissertation or a master's thesis. It uses the book class with the oneside option at 12 pt, one-inch margins and double spacing from setspace, a common baseline for theses that are submitted as PDFs. The front matter has a title page built from \maketitle, an unnumbered Abstract chapter and a table of contents, with roman page numbers handled by \frontmatter.
The main matter contains the six chapters most theses use: Introduction (with Background and Research Questions sections), Literature Review, Methodology, Results, Discussion and Conclusion, each a one-line placeholder for you to expand. The back matter holds a thebibliography reference list. The preamble loads amsmath, amsthm and amssymb for mathematics and graphicx for figures, which covers most STEM and social science theses. The template is deliberately minimal: it does not yet include a list of figures, appendices, acknowledgements or a formal degree statement on the title page, and the steps below show how to add each one. Because every package ships with TeX Live, it works as a thesis template for Overleaf, in Octree or on a local install. Before you start writing, compare it with your university's formatting guide, since margins, spacing and title-page wording are usually prescribed.
What is included
- One-sided
bookclass, 12 pt, double spaced - Title page, abstract and table of contents in the front matter
- Six numbered chapters from Introduction to Conclusion
- Bibliography in the back matter
- AMS maths packages and
graphicxloaded
How to use it
- Click Open as Template to edit in Octree, or View Source and paste the code into Overleaf or a local
thesis.tex. - Compile with pdfLaTeX, twice, so the table of contents fills in.
- Edit
\title,\authorand\date, and write the abstract. - Expand each
\chapter; move chapters into separate files once they grow.
Customise the template
A formal title page. Replace \maketitle with a titlepage that carries the degree statement your university requires:
\begin{titlepage}
\centering
\vspace*{2cm}
{\Huge\bfseries Thesis Title\par}
\vspace{1.5cm}
{\Large Your Name\par}
\vfill
A thesis submitted in partial fulfillment of the requirements\\
for the degree of Doctor of Philosophy\\[1em]
Department Name, University Name\\[1em]
Month Year
\end{titlepage}Lists, acknowledgements and appendices. Extend the front and back matter:
\chapter*{Acknowledgements}
I thank ...
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\include{chapters/introduction}
...
\appendix
\chapter{Additional Results}
\backmatterSingle-spaced front matter. Many guides want the table of contents single spaced; wrap it in \begin{singlespace} \tableofcontents \end{singlespace}, which setspace provides.
Related templates: dissertation, research proposal and literature review.
Thesis template FAQ
- How do I structure a thesis in LaTeX?
- Use the book or report class, put the title page, abstract and table of contents in \frontmatter, the numbered chapters in \mainmatter and the bibliography in \backmatter, as this template does. Appendices go at the end of \mainmatter, after \appendix, so they keep their letters. For a long thesis, keep each chapter in its own file and include it with \include{chapters/introduction}.
- Does this thesis template follow my university's rules?
- It gives a common default (12 pt, one-inch margins, double spacing, one-sided), but universities set their own requirements for margins, spacing, title page wording and front matter order. Check your graduate school's formatting guide and adjust the geometry and setspace lines and the title page to match.
- How do I add a list of figures and appendices?
- Add \listoffigures and \listoftables after \tableofcontents. For appendices, put \appendix after the last chapter and before \backmatter, then write \chapter{Additional Results}; the class numbers them Appendix A, B and so on.
- Can I write my thesis in Overleaf with this template?
- Yes. It uses the book class with geometry, amsmath, amsthm, amssymb, graphicx and setspace, all part of TeX Live, so it compiles with pdfLaTeX in Overleaf, Octree or a local install. Compile twice so the table of contents is complete.