\documentclass[11pt,PhD]{muthesis}
% Change the PhD option to ME, MPhil, MTech, PGDip, or PhD if appropriate
% Sample file for Massey University theses (using muthesis)
% Use this as the base for your thesis, and then add the various chapters in using \include
% lines as with chapter1 below.
% Stephen Marsland, July 2009
% Based on the University of Manchester class by Graham Gough
% A set of packages that might be useful
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{url} % typeset URL's reasonably
\usepackage[round]{natbib}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{listings} % for printing code listings nicely
\lstset{language=Java} % change as required
% Uncomment the next line if you want subsubsections to be numbered
%\setcounter{secnumdepth}{3}
% Uncomment the next line if you want subsubsections to be appear in the table of contents
%\setcounter{tocdepth}{3}
% Degree is set in the class declaration at the top
% Other things to set:
\subject{Computer Science}
\campus{Palmerston North}
\begin{document}
%% Uncomment the following lines to leave out list of figures and tables until final printing
%\figurespagefalse
%\tablespagefalse
%% Uncomment to make it singlespaced to save paper for draft printing
%\singlespace
%% Latex will put the current year on the title page by default. If you wish to change it, modify and uncomment this line
%\year=2010
\title{It's My Thesis\\
And I'll Cry If I Want To}
\author{Poor Forgotten Student}
\beforeabstract
\prefacesection{Abstract}
\input{abstract}
\prefacesection{Acknowledgements}
I would like to thank...
\afterpreface
% These include the actual text
\include{chapter1}
%\include{chapter2}
%\include{chapter3}
% Appendices start here
\appendix
\include{appendix1}
% Bibliography starts here
% First: name of .bib file (e.g., refs)
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{refs}
% Second: style in which printed. There is no official style, but I like plainnat
\bibliographystyle{plainnat}
\end{document}