KA
kastnerp/ElegantThesisLaTeX
Extensive LaTeX template that can be used for Master's and Ph.D. theses.
ElegantThesisLaTeX
A thesis template based on KOMA-Script (scrbook).
Includes ideas and snippets inspired by Konrad Muehler (kfiles.de/latex.php).
Quickstart
- Install a TeX distribution with LuaLaTeX, BibTeX, MakeIndex, MakeGlossaries, and
latexmk. - Build the PDF.
- Clean build artifacts when needed.
Build commands:
- Windows full build (includes equation export):
compile.bat- Cross-platform (fast, deterministic build via
latexmk):
./compile.ps1./compile.shOn macOS/Linux, run chmod +x compile.sh clean.sh once.
Clean commands:
clean.bat./clean.shCustomize In 5 Files
config.tex- project metadata and font toggle.title.tex- title page layout.abstract.tex- abstract content.thesis.tex- document structure, chapter order, lists, bibliography.1_chapter.tex- start your content here and follow the pattern for other chapters.
Related files:
header.texcontrols style and layout.glossaries.texcontains glossary and acronym definitions.
Fonts
Default fonts are free and included with common TeX distributions.
- Serif:
XCharter-Roman - Sans:
TeX Gyre Heros
Fallback option:
- Set
\UseFallbackFontstrueinconfig.texto switch to Latin Modern.
Build Tools
latexmkrcconfigures a deterministic multi-pass build.equations.batexports equations and requirespdfcrop, Ghostscript, andpdf2svg.
Citation Style
Switch citation style in header.tex.
- For a numbered bibliography, use the "Numbered Bibliography" block.
- For APA style, use the "APA Style" block and replace
\citep{}with\cite{}.
Maintainer Notes
Template repository:
- In GitHub, open repository settings and enable "Template repository".
Release tags:
git tag -a vX.Y.Z -m "Release vX.Y.Z"git push --tags- Create the release in GitHub for the tag.
Features
On this page
Languages
TeX99.2%PowerShell0.3%Batchfile0.3%Shell0.2%Python0.1%Perl0.0%
MIT License
Created December 23, 2017
Updated March 2, 2026










