This page describes a LaTeX template for writing up your PhD or DPhil. It can be downloaded from here. The template could also serve as a backbone for writing similar documents, like Bachelor and Masters theses. Using the template only requires minimal knowledge of LaTeX, and it contains in-line comments explaining the most essential LaTeX mark-up in the document, mainly the introduction.tex file. If you don't have a LaTeX environment on your computer, you can find some instructions below (Requirements section).
Overview of template layout
Using this LaTeX template you will be able to produce a professionally typeset PDF document with useful features not found in most PDFs. Most of the document structure will be generated automatically without you having to set it up manually, saving you several hours of layout twiddling. Favourite features are the automatic placement of figures close to the text references and avoiding orphan lines (see below for a full list).
- cover page with institution crest and personal details (panel 1, top left)
- automatic table of contents, automatic numbering of chapters, section,.. (panel 2)
- automatic listing of all figures and tables after the table of contents (panel 3 & 4, top right)
- automatic glossary in 2 columns (panel 5, bottom left)
- special layout for the start of a chapter, always on a main page (odd page number) (panel 6)
- easy placement of figures with bold title and indented caption below using a macro (panel 7)
- automatic generation of reference section / bibliography at the end of the document (panel 8, bottom right)
The template does most of the layout work for you. Nevertheless, you can of course change the layout if desired. You might want a different citation style or you may not need an abstract. Many alternatives are given within the documents of the template as inactive lines (preceded by %), which can be activated as desired by uncommenting (removing the % sign).
Download and use
- download the archive with all the text files making up the template: PhDtemplateLATEX.zip (2 MB) - If you have improved the template, feel free to upload a new version 
- unpack the archive after download
- you will find a folder structure resembling the document (0_frontmatter, 1_introduction,.. 9_backmatter)
- start by looking at the introduction.tex file in the folder /1_introduction; it contains detailed comments explaining LaTeX and this template
- you can start directly by adding contents to the sub-document, e.g. the introduction.tex file
- also add your personal information to the central document thesis.tex which calls up all the other sub-documents
- LaTeX environment: pre-installed on many Linux OSs or via installers like MacTeX package (free)
- LaTeX compiler, e.g. TeXShop (free, OS X)
- For TeXShop, I recommend the Latexmk405TeXShop package which will ease compilation of your document a lot. you can download it here. Installation instructions are included.
To use the template you'll need a piece of software that assembles the PDF from the various text files. There are flavours of this for all operating systems. For example on the Mac, I would recommend TexShop. You might also find a citation manager useful, although not strictly required. You can make the file containing the references (BibTex file) using the web site CiteULike instead. A reference manager comes with additional handy features though. On the Apple computers, BibDesk is the best because its freeware with PubMed import, easy keyword tagging, and PDF linking/viewing.
Credits and call for improvements
If you adapt the template, change the layout, iron out glitches, write explanations, etc. please upload your improvements and make them available to the community.
Especially the glossary generation is still complicated. It would be great if this were simplified. I had to resort to the command line using the OS X Terminal programme: makeindex thesis.nlo -s path/nomencl.ist -o thesis.nls (file paths may have to be added).
History of changes
- Thanks to Till Korten for bug fixes and further improvements added in 2009.
- I extended and corrected (glossary, page number 1/2 duplicated, some layout changes,..) Harish's template in 2007 and posted it here for community use.
- This template is based on Harish Bhanderi's PhD template from 2002. Thanks for a well done template.
in Wikipedia et al:
|LaTeX Template for a Master or PhD Thesis||navigate:back|
This is the latex template for my PhD thesis. I commented the latex prologue and tried to keep it as simple as possible, so it can be easily understood and extended. The template holds dummy text with examples for creating tables, figures, index and glossary.
The template includes a Makefile that creates three files:
- thesis.dvi for fast previewing with hyperlinks in b/w
- thesis.ps for printing in b/w (without any hyperlinks)
- thesis.pdf for online viewing with hyperlinks in color
Organization of the Template
- Makefile governs the compiliation; target: , and
- thesis.tex holds everything together and includes
- thesis-man.ist for custom formatting of index (letter heading, dots)
- references.bib for the bibtex bibliography
- the dvi and pdf files are fully hyperlinked
- table of contents to chapters in the text
- list of figures to figures in the text
- list of tables to tables in the text
- text to floats (figures and tables)
- text to bibliograpy
- bibliograpy to page in the text (not dvi version)
- index to page in the text
- glossary to page in the text
- acrobat general information (pdf version, only)
- thesis title
- thesis subject
- thesis author
- thesis keyword
- acrobat reader features (pdf version, only)
- preview images are included
- bookmarks: the bookmark includes not only links to numbered chapters, but also to unnumbered chapters (title, table of contents, list of figures, list of tables, acknowledgement, abstract, bibliograpy, index and glossary)
- small pdf file size
I changed (but not necessarily improved) the standard latex layout by using bars over chapter titles etc. This can be easily undone by deleting thesis.cls and changing in thesis.tex style to style .
- a flavor of unix for the makefile
- latex and pdflatex
- non-standard packages: these packages are becomming less common and may not be included in your latex distribution:
- glossary for generating a glossary (a quick workaround is to save a copy of glossary.sty in the same directory as your thesis)
- aeguill for improving pdf font rendering (a quick workaround is to save a copy of aeguill.sty in the same directory as your thesis)
- ghostscript (thumbpdf)
- optional: zip and ps2ascii
Last time I tried to compile this template was in May 2013 and it worked with these caveats:
- FreeBSD 9.0 w/ the print/teTeX port and a copy of glossary.sty in the same directory as the thesis
- Debian 7.0 w/ the texlive and texlive-latex-extra packages as well as copies of glossary.sty and aeguill.sty in the same directory as the thesis (the latter package was available in previous releases)
- NetBSD/pkgsrc 2013Q1 has an open bug in thumbpdf [pkg/47936].
To MikTeX users: the makefile has some nice goodies which will perhaps be missing when using MikTeX (the makefile drives generating the different features in the dvi, ps and pdf version and adds preview images for acrobat reader). The template should work with MikTeX, but all problem reports have been from MikTeX users, only. Watch your steps. Could any MikTeX user give me feedback on encountered issues and how to overcome them, please?
- 2, 3 mm less top-margin on the index page (I recommend not creating an index page, anway. that is too much work)
- before compiling dvi, ps or pdf, sometimes a may be necessary
You are welcome to send me comments. Contact information is available on the main page.