thesis-latex-template is a starting point for a Master’s or PhD thesis in LaTeX. You download it, fill in one configuration file and compile with a single command. The front matter, the lists and the bibliography are generated for you.

At a glance
What it isA LaTeX template for Master’s and PhD theses, with English and Italian abstracts
ForStudents writing a thesis in LaTeX, starting today or moving from Word
Runs onTeX Live or MiKTeX on Windows, Linux and macOS; Overleaf
StatusStable
LicenceCC BY 4.0
Based onKAUST Official Thesis Template (CC BY 4.0)

Page updated on , for version 1.1.0. Later changes are in the project's changelog.

Why it exists

I adapted it from the KAUST thesis template for my Master’s thesis, which I defended in 2023 at the universities of Pavia and Tübingen. Afterwards I stripped out everything that belonged to that thesis and turned what was left into a generic template. It compiles cleanly out of the box, with one command and nothing to fix by hand.

What it does

  • Chapters and appendices are modular, one file each, and there are abstracts in English and Italian.
  • The front matter is generated for you: table of contents, lists of figures and tables, abbreviations and symbols through glossaries.
  • You can write the bibliography by hand or use BibTeX, and switch between the two with a single setting in config.tex.
  • Title, author, margins, line spacing and heading sizes all live in one configuration file.
  • It uses vector fonts only, so the PDF stays sharp and PDF/A-compatible.
  • The compilation scripts for Windows, Linux and macOS run every pass in the right order.

Try it

  1. Install a LaTeX distribution: MiKTeX on Windows, MacTeX on macOS, TeX Live on Linux. If one is missing, the scripts will tell you.
  2. Download the template with the button above, or clone the repository.
  3. Open config.tex and enter title, author, degree and university.
  4. Run compile.bat on Windows or ./compile.sh on Linux and macOS, then open output/Thesis.pdf.

The QUICKSTART goes through the same steps in about five minutes. In Chapter_1.tex there is a worked example of every element: figures, tables, equations, citations, abbreviations.

Where it stands

The template is complete, and it compiles on TeX Live and MiKTeX with no errors and no missing packages. Keep in mind that it is a starting point, not a finished thesis. Check the result against your institution’s formatting rules, and if your university provides an official title page, use that as a PDF.

At some point I would also like to turn it into an agent skill, so that a coding agent could set up the template and fill it in from a brief.

Get involved

Improvements are welcome. Open an issue or a pull request: describe the problem, test the change and explain what you altered. The licence is CC BY 4.0, the same as the original, so you can use and adapt the template, commercially too, as long as you keep the attribution.