A LaTeX thesis that compiles on the first day, is structured the way an examiner expects to read it, and checks itself for the mechanical mistakes nobody should be spending supervision time on.
Built for theses at the Institute of Media Informatics, Ulm University, but nothing here is specific to Ulm beyond a few defaults on the title page.
make # build the PDF
make check # run the mechanical checks
make progress # how much is left to writemake is a convenience, not a requirement — it is often missing on
Windows, and writing in Overleaf needs none of it. The same three commands
without it:
latexmk -pdf -outdir=build main.tex
mechcheck check . --offline --build-dir build
python tools/verify-template.pyReading a thesis chapter costs two passes. One for the argument, and one for the mechanics: an abbreviation introduced twice, a figure nobody ever references, a citation whose DOI points at a different paper. The second pass is exhausting, and it is the feedback students find least useful, because a machine could have told them a month earlier.
So the machine tells them. This template is the other half of that idea: rather than only catching mistakes, it starts you somewhere they are hard to make. A structure that is already right generates no findings at all.
It ships clean. A fresh copy of this repository reports zero findings
from mechcheck, online checks
included. That is a deliberate contract, make verify tests it, and CI
runs it on every push. Any finding you see later is yours, which is the
only way a checker stays worth reading.
Click Use this template at the top of this page, or download the ZIP, then read docs/GETTING-STARTED.md. It takes about twenty minutes to make this document yours.
Writing in Overleaf, which is what most people do: docs/OVERLEAF.md.
main.tex the spine: metadata, and the order of everything else
thesis.sty packages, title page, \stub, cross-reference names
mechcheck.sty the checks that run while the document compiles
mechcheck.yaml which checks apply, and the exceptions with reasons
refs.bib four real references, generated from Crossref metadata
frontmatter/ abstract (English and German), acknowledgments
chapters/ six chapters, each one a set of prompts to replace
backmatter/ appendix, declaration of authorship
figures/ the example figure, and the script that draws it
docs/ four short guides, listed below
| Guide | For |
|---|---|
| GETTING-STARTED.md | Your first twenty minutes |
| OVERLEAF.md | Writing in Overleaf, and getting the checks there |
| WRITING-GUIDE.md | The house style, and why each rule exists |
| SUPERVISOR-CHECKLIST.md | What a machine cannot check |
Every section starts as a \stub{...}: a prompt saying what belongs there,
printed in the draft PDF so you can see what is still missing.
\section{Limitations}
\stub{Name the things that genuinely constrain what the results support.}make progress counts them. When you comment out one line in main.tex, a
leftover stub becomes a compilation error, so a prompt cannot reach your
examiner by accident.
Three layers, and you can use any subset:
- While it compiles.
mechcheck.styis loaded by default and prints a short report as the last page of the draft PDF. This works in Overleaf, with nothing installed and nothing configured. - In the browser. Drop your Overleaf ZIP on mechcheck's single-file page, or install its Chrome extension and get a button inside Overleaf itself.
- On every push.
.github/workflows/thesis.ymlruns the full check and compiles the PDF, so the current version is always downloadable from the Actions tab.
What none of them do is judge. A clean run means nothing embarrassing is left. It does not mean the work is good, and no checker will ever tell you that.
Nothing, if you write in Overleaf. Locally you need a TeX distribution with
KOMA-Script, and optionally Python 3.12+ for mechcheck.
MIT — see LICENSE. Use it, change it, hand it to your students.
The licence covers the template. What you write in it is yours.