PhD thesis LaTeX template with book mode and paper mode

[ #LaTeX ]

This is the latex template I use for my dissertation. Maybe it is useful for other PhD students because it is very flexible. You can easily choose to compile the whole dissertation or just a single paper from it, for example to discuss it with your thesis advisor. Finally, you can enable the double-sided option, which adjusts the margins and prepares the document for being printed and bound. Therefore, once the dissertation is accepted, you can go directly to the bookbinder and have it bound without any major formatting difficulties.

[ Download Template Zip ][ Find most recent version on Overleaf ]

The settings are made in the thesis.tex file and are shown below. To change them, simply change the numbers in the curly brackets. At the bottom of this page you can see an example of the book mode and an example of the paper mode.

% =============================================================
% Please define what to be compiled: Either full thesis or a single chapter out of it.
\def\mode{1} % Set to either 1 = Bookmode or 0 = chaptermode
\def\chapnr{1} % Set to # of chapter to be compiled in chaptermode
\def\onesided{1} % Set to 1 for onesided and 0 for twosided
% =============================================================

\if 1\mode
    \if 1\onesided
        \documentclass[12pt,oneside,a4paper,table]{book} 
    \else
        \documentclass[12pt,twoside,a4paper,table]{book} 
    \fi 
\else
    \if 1\onesided
        \documentclass[12pt,oneside,a4paper,table]{article} 
    \else
        \documentclass[12pt,twoside,a4paper,table]{article} 
    \fi 
\fi 

Book mode

Paper mode