An unofficial LaTeX template for EPFL PhD theses.
Option 1: Direct Upload
- Download this repository as a ZIP file
- Upload to Overleaf
- Set compiler to pdfLaTeX and TeX Live version to 2025
- Set
my_thesis.texas the main document - Start writing your thesis!
Option 2: GitHub Integration (Recommended for version control)
- Fork this repository or create a new repository using this template
- In Overleaf, create a new project and select "Import from GitHub"
- Connect your GitHub account and select your thesis repository
- Set compiler to pdfLaTeX and TeX Live version to 2025
- Set
my_thesis.texas the main document - Enable sync to keep your GitHub repo and Overleaf project synchronized
💡 Tip: Using GitHub integration allows you to maintain version control, collaborate with supervisors, and have a backup of your work outside Overleaf.
- Clone this repository:
git clone https://github.com/glederrey/EPFL_thesis_template.git - Ensure you have a recent LaTeX distribution (TeX Live 2020+ recommended)
- Compile with:
pdflatex my_thesis.tex
EPFL_thesis_template/
├── my_thesis.tex # Main document file
├── my_thesis.pdf # Example output
├── settings/
│ ├── settings_epfl_template.tex # Core template settings
│ └── settings_custom.tex # Your custom packages/settings
├── content/
│ ├── head/ # Front matter
│ │ ├── titlepage.tex # Title page (auto-generated)
│ │ ├── dedication.tex # Dedication page
│ │ ├── acknowledgements.tex
│ │ ├── preface.tex
│ │ └── abstracts.tex # English & French abstracts
│ ├── ch1/ # Chapter 1
│ │ └── introduction.tex
│ ├── ch2/ # Chapter 2 (example with figures/tables)
│ │ └── figures_tables.tex
│ ├── ch3/ # Chapter 3 (example with math)
│ │ └── math.tex
│ ├── ch4/ # Chapter 4
│ │ └── more_text.tex
│ └── tail/ # Back matter
│ ├── appendix.tex
│ ├── biblio.tex # Bibliography
│ └── cv.tex # Curriculum Vitae
├── assets/ # Images and figures
├── utopia_font/ # Custom font files
└── .gitignore
Before starting, review the official EPFL thesis guidelines for mandatory requirements.
- Personal Info: Edit
content/head/titlepage.texfor your thesis details - Custom Packages: Add your packages to
settings/settings_custom.tex - Content: Replace example chapters in
content/ch*/with your own - Bibliography: Update
content/tail/biblio.texwith your references
- Each chapter should be in its own folder under
content/ - Use
\input{}commands to include your chapter files - Place figures in a separate folder inside each chapter folder, as shown in
content/ch2 - The template automatically handles page numbering and formatting
❌ "LaTeX Error: Unknown option explicit for package titlesec"
- Solution: Update your LaTeX distribution or the
titlesecpackage to version 2007 or later
❌ "pdfTeX error (font expansion): auto expansion is only possible with scalable fonts"
- Solution 1: Comment out line 4 in
content/head/titlepage.texby adding%before\sffamily - Solution 2 (Windows): Update MiKTeX fonts:
- Open "MiKTeX Settings (Admin)"
- Press "Refresh FNDB" → "Update Formats" → "OK"
- Clean auxiliary files and recompile
❌ Special characters causing compilation errors
- Solution: Ensure all files are saved with UTF-8 encoding
- TeX-Shop (Mac): Preferences → Source-Code → Encoding → "UTF-8"
❌ Chemistry formulas with mhchem package
- Solution: Update
mhchemto version 3.11+ from CTAN
- Always set
my_thesis.texas the main document - Use pdfLaTeX compiler with TeX Live 2025
- If compilation fails unexpectedly, check that Overleaf isn't trying to compile a different file
We welcome contributions! If you've improved the template or have suggestions:
- Email: [email protected]
- PolyDoc: [email protected] | Website
- Issues: Open an issue on this repository
- Pull Requests: Submit improvements via PR
- ??? - Original creator
- Diogo Rodrigues - Fixed LaTeX → dvips → ps2pdf version + minor fixes
- Mahdi Khoramshahhi - Font expansion bug fix
- Léo Belzile - Logo update, code cleanup, bug fixes
- Nicolas Tappy - Fixed a bug in the headers
- Gael Lederrey - Structure rework based on feedback, README upgraded [current maintainer]
- Mathias Payer's template - Alternative EPFL thesis template
This template is released under the MIT License. Feel free to use, modify, and distribute.
- General Questions: Contact PolyDoc
- Template Issues: Open an issue or email the maintainer
- EPFL Thesis Requirements: Check the official EPFL guidelines
Note: This is an unofficial template. While it follows EPFL guidelines, always verify compliance with current requirements before submission.
Last updated: September 2025