LaTeX template for PhD theses
- Template for an article based thesis: zip, GitHub, Overleaf
- Template for a monograph: zip, GitHub, Overleaf
The template consists of two parts:
phduio.cls
– This file defines the thesis specific layout. It is not intended to be manipulated by the end user. Please read the documentation.phdstyle.sty
and.tex
files – These form a skeleton for the thesis and is an optional addition to keep the writing structured and organised. These files can be edited freely by the user. See the accompanying guide for large documents.
Frequently asked questions
- Which TeX distribution do you recommend? TeX Live. It is an excellent distribution for Mac, Windows and Linux.
- How do I remove labels from the margin? Use the document class option
final
:\documentclass[final]{phduio}
- How do I compile the bibliography? The file
phdstyle.sty
imports the packagebiblatex
with the optionbackend = biber
. To compile the bibliography, runbiber
on the main file or change tobackend = bibtex
and runbibtex
. In the latter case, you will need to runbibtex
on every.aux
file created byrefsection
if using the article-based template. - How do I change the reference and citation style? The file
phdstyle.sty
imports the packagebiblatex
with the optionstyle = alphabetic
. Replacealphabetic
with another style name. - Why do I get an error saying
giveninits
is undefined? The filephdstyle.sty
imports the packagebiblatex
with the optiongiveninits = true
. The error indicates that you have installed an old version ofbiblatex
. The best solution is to update your TeX distribution to the latest version. Alternatively, changegiveninits
tofirstinits
. - Why is
\citet
and\citep
not working? These commands are not defined inbiblatex
; their analogues are called\cite
and\parencite
, respectively. You can define\citet
and\citep
to issue their counterparts by adding\let\citet\cite
and\let\citep\parencite
to the preamble. - How can I use fragile macros inside
\title
or\author
? Add\protect
before the macro. - Why is the paper number reset to I? Most likely the previous paper initialises appendices with the global macro
\appendix
, which resets the chapter counter. Instead, the appendices should be placed inside the local environment\begin{subappendices} ... \end{subappendices}
. - Why are some chapters preceded by a blank page? By the formal layout requirements, chapters should start on a recto page. A blank page is inserted if this does not occur naturally.
Need help?
If you need further assistance with the template, you may send an e-mail to latexguru@ub.uio.no.
Published Feb. 15, 2019 6:05 PM
- Last modified Aug. 31, 2020 11:12 PM