LaTeX template for a PhD or master thesis