% A configurable template for PhD Thesis
% Created:      10 Sep 2003 [Matthew D.H. Lay]
% Last Modified:22 May 2006 [Matthew D.H. Lay]
% Comments:     Unfortunately I think the margins change depending on the PDF converter or PDF reader used.
% These values were optimised for Miktex 2.1, epstopdf and AdobeReader6 for Windows XP SP2 and may vary for your system.

%+++++++++++++++++++++++DEFINE CLASS & PACKAGES++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\documentclass[a4paper,twoside,12pt]{book}
\usepackage{graphics}               %figure insertion with \resizebox{\includegraphics{file.eps}
\usepackage{graphicx}               %figure insertion with \includegraphics[width=x.cm]{file.eps}
\usepackage{subfigure}              %subfigures with \mbox and \subfigure[]
\usepackage{amsmath}                %more maths options, e.g. {split} to align multi-line equations
\usepackage{amssymb}                %more maths symbols e.g. hbar and plot symbols
\usepackage{setspace}               %enables use of \doublespace \onehalfspace \singlespace
\usepackage{fancyhdr}               %customises header and allows chapter, section or page number
\usepackage{minitoc}                %chapter contents at start of chapters
\usepackage{chapterbib}             %bibliography at end of chapters, you will need to run bibtex separately on each chapter file though

%=======================DEFINE PAGE====================================================================================
\topmargin      -1.8cm              %top of page margin
\headheight     14.5pt              %running head height
\parskip        2mm                 %paragraph spacing
\oddsidemargin  12mm                %left margin of odd page =28mm +oddsidemargin
\evensidemargin 1mm                 %left margin of even page =29mm +evensidemargin
\textheight     250mm               %height of text box on page
\textwidth      145mm               %width of text across the page =textwidth -5mm
\parindent      8mm                 %paragraph indentation width
\pagestyle{fancy}                   %define headers, Left/Right-Odd Page, Left/Right-Even Page
    \fancyhead{}                    %Reset fancy fields
    \fancyhead[LO]{M. D. H. Lay}      %Other position is [RE]
    \fancyhead[RO]{\rightmark}      %rightmark is the section name
    \fancyhead[LE]{\leftmark}       %leftmark is the chapter name
    \renewcommand{\headrulewidth}{0.5mm}
        \headsep=   1.3cm             %Text separation from header
%    \renewcommand{\footrulewidth}{0.5mm}
    \cfoot{\thepage}
        \footskip=  1.3cm             %Text separation from footer

\renewcommand\bibname{References}   %Changes the Bibliography name to References instead

%===Redefine default figure placement================================================================================
% This allows Latex to put the figure where you define it by default i.e. [h] ->here
\makeatletter
\def\fps@figure{htbp} %default is {tbp}
\makeatother
%==========================DEFINE PERSONALISED COMMANDS===============================================================
%Instead of typing out commonly used long commands/items that are long you can define your own commands to use.
%Notes: (1)\ensuremath is used in case you want to use the command while already in a math environment
%e.g. $\theta =30\degr +45\degr$
%(2) Latex wont put a space between this and the next word so I put it in manually and define another command name with
%a s suffix when I specifically don't need a space e.g. at the end of a sentence. This can cause issues though as Latex
% wont break the words joined by the tilde apart for line splitting.
\newcommand{\sq}{\ensuremath{^2~}}
\newcommand{\sqs}{\ensuremath{^2}}
\newcommand{\cb}{\ensuremath{^3~}}
\newcommand{\cbs}{\ensuremath{^3}}
\newcommand{\x}{\ensuremath{\times}}
\newcommand{\degr}{\ensuremath{^\circ}~}
\newcommand{\degrs}{\ensuremath{^\circ}}
\newcommand{\prox}{$\approx$}
\newcommand{\degc}{$^{\circ}$C~}
\newcommand{\degcs}{$^{\circ}$C}
% =========================BEGIN DOCOMENT==============================================================================
\begin{document}
\pagenumbering{roman}   %Roman numeral numbering for initial section of thesis
%==========================DEFINE TITLE PAGE===========================================================================
% This isn't a very elegant way of defining your own title page but it sure beats learning how to program in perl
% which is what I think you need to know to configure your own latex .sty file or .cls file or something
\begin{titlepage}
\begin{figure}[tp]
\centering
\resizebox{3.5cm}{!}{\includegraphics{UM_logo_MINBlue1.eps}}
\end{figure}
\begin{center}
{\Large            School of Physics     }\\ \vspace{0.1cm}
\rule{150mm}{0.5mm}

%--------------------------------------------------------------------------------------------------
\vspace{1cm}
{\bf\LARGE   A SIMPLE \& CONFIGURABLE }\\ \vspace{0.3cm} %
{\bf\LARGE   PhD THESIS } \vspace{0.3cm} %
{\bf\LARGE   TEMPLATE         } \\ %
\vspace{2cm}
{\LARGE      Matthew D. H. Lay       }\\
\vspace{5cm}
{\em\large Submitted in total fulfilment of the requirements}\\ \vspace{0.1cm}
{\em\large        of the degree of Doctor of Philosophy     }\\
\vspace{0.5cm}
{\Large             April, 2006        }\\
\vspace{0.5cm}
\end{center}
\end{titlepage}
\cleardoublepage                    %Inserts empty page after title page

%==========================DEDICATION============================================================================
\chapter*{ } %
\begin{center} \emph{Dedicated to Schr\"{o}dinger's Cat}
\end{center}
%==========================ABSTRACT PAGE===============================================================================
% 300-500 WORDS
\chapter*{Abstract}
Your Abstract of 300-500 words should go here.

This template attempts to help you to start your thesis. It is full of many things that were used to generate my
thesis and make it the way that I wanted it to look, professional but chic :)

%==========================SIGNED DECLARATION==========================================================================
\chapter*{Declaration} %
This is to certify that:
\begin{itemize}
\item[(i)] the thesis comprises only my original work towards the PhD except where indicated,
\item[(ii)] due acknowledgement has been made in the text to all other material used,
\item[(iii)] the thesis is less than 100,000 words in length, exclusive of table, maps, bibliographies,
appendices and footnotes.
\end{itemize}
\vspace{3cm}
\rule{70mm}{0.1mm}\\
\emph{Your name in full}
%%==========================PREFACE=====================================================================================
\chapter*{Publications} %
During the course of this project, a number of public presentations have been made which are based on the work
presented in this thesis. They are listed here for reference.

\begin{itemize}
\item {\bf A. Student, A. Collaborator and Y. Supervisor,} {\em Something about nothing}, Some Obscure Journal, vol. V (Year) p. x.

\item {\bf A. Student, A. Collaborator and Y. Supervisor,} {\em More about nothing}, Crazy Physics Journal, vol. V (Year) p. x.
\end{itemize}

%==========================ACKNOWLEDGEMENTS============================================================================
\chapter*{Acknowledgements} %
You may want to leave this until right at the end. You never know who will come out of the woods to save the
day. Don't forget to thank your producer, your parents and Jesus.

%==========================CONTENTS====================================================================================
\include{ch-intro}
\singlespace    %switch to single spacing for table of contents etc
\dominitoc
\tableofcontents
\listoftables   %The list of tables/figures may seem pedantic but is actually required by SGS if more than 10 items
\listoffigures
%===========================MAIN BODY==================================================================================
\newpage
\pagenumbering{arabic}
%                           PART I
%___________________________REVIEW_____________________________________________________
\part{Background}
\include{ch-review}
\singlespace
\part{Research Work}
%                          PART II
%__________________________STUDIES_____________________________________________________
\include{ch-study1}
\singlespace
%______________________________________________________________________________________
\end{document}

%======================================================================================================================
