A robust, reproducible LaTeX thesis template powered by Docker.
Ensures your thesis compiles perfectly on any machine, every time.
📦 LaTeX-Thesis-Template
├── 📂 chapters/ # Thesis chapters (Introduction, Literature Review, etc.)
├── 📂 fonts/ # Custom fonts
├── 📂 images/ # Figures and illustrations
├── 📄 thesis.tex # Main entry point
├── 📄 env.tex # Configuration and packages
├── 📄 references.bib # Bibliography database
├── 🛠️ build.ps1 # Build script for Windows
└── 🛠️ build.sh # Build script for macOS/Linux
Ensure you have Docker Desktop installed and running.
- Build the Environment:
winpty or standard PowerShell:
./build.ps1 - Compile Thesis:
Inside the container:
latexmk -lualatex -pdf thesis.tex
- Build the Environment:
Run the setup script:
./build.sh
- Compile Thesis:
Inside the container:
latexmk -lualatex -pdf thesis.tex
Tip: To define a custom output filename, add
-jobname=mythesisto the command.
Use latexmk in "Preview Continuously" mode to automatically recompile when you save changes.
latexmk -lualatex -pdf -pvc thesis.tex- Recommended Viewers: Skim (macOS), SumatraPDF (Windows), Okular (Linux).
- Note: This requires a PDF viewer that supports auto-refresh.
We recommend the following extensions for an optimal writing experience:
| Extension | Description |
|---|---|
| LaTeX Workshop | Comprehensive LaTeX features including build tools, syntax highlighting, and PDF preview. |
| LaTeX Utilities | Essential add-ons like word count and bibliography management. |
- Engine: This template is configured for LuaLaTeX to support modern fonts and unicode.
- Cleaning: Run
latexmk -cto remove temporary auxiliary files. - Bibliography: Handled automatically; just modify
references.bib.