% Delete the MSc option if you are doing a PhD, or replace it with MPhil
% for a Master of Philosophy thesis
%
% The 12pt option is required by the 2001/02 thesis regulations
% Last update 15th August 2007: new Abstract format and Copyright Statement
% Replace MSc with PhD for PhD theses
% Remove the twoside option for single-sided printing
\documentclass[12pt,MSc,a4paper,oneside]{muthesis}
\usepackage[a4paper]{geometry} % It saves some pages
\usepackage[utf8]{inputenc}
\usepackage{algorithmic}
\usepackage[chapter]{algorithm}
\usepackage{hyperref}
\usepackage{url}
\usepackage{svg}
\usepackage{listings}
\hypersetup{
colorlinks=true, % false: boxed links; true: colored links
linkcolor=black, % color of internal links
citecolor=black, % color of links to bibliography
filecolor=black, % color of file links
urlcolor=blue % color of external links
}
\usepackage{amsmath,amssymb}
\usepackage[authoryear,colon]{natbib}
\usepackage{xspace}
\usepackage{booktabs}
\newcommand{\detailtexcount}[1]{%
\immediate\write18{texcount -merge -sum #1.tex > #1.wcdetail }%
\verbatiminput{#1.wcdetail}%
}
\newcommand{\quickwordcount}[1]{%
\immediate\write18{texcount -1 -sum -merge #1.tex > #1-words.sum }%
\input{#1-words.sum} words%
}
\newcommand{\quickcharcount}[1]{%
\immediate\write18{texcount -1 -sum -merge -char #1.tex > #1-chars.sum }%
\input{#1-chars.sum} characters (not including spaces)%
}
\oddsidemargin 15truemm \evensidemargin -8truemm
\marginparwidth 40pt \marginparsep 10pt
\topmargin -11.5truemm \headsep 7truemm
\textheight 245truemm \textwidth 154truemm
\newcommand{\assign}{\ensuremath{=}}
\begin{document}
\title{The Full Thesis Title should appear here}
%\author{John Henry Candidate}
\author{Student ID}
\school{Alliance Manchester Business School}
\faculty{Humanities}
% Don't count these!
%%TC:ignore
\def\wordcount{\quickwordcount{main}}
%\quickcharcount{main}
%\detailtexcount{main}
%%TC:endignore
% Uncomment the line below to suppress the `List of Tables' page (optional)
%\tablespagefalse
% Uncomment the line below to suppress the `List of Figures' page (optional)
%\figurespagefalse
% Uncomment the line below to use a customised Declaration statement
%\def\declaration{All the work in this thesis has been sourced from Google.}
%\maketitle
\beforeabstract
Write your abstract here: Remember, it must fit on this A4 page and should
describe contents of the thesis/dissertation. Here might also be a good place
to indicate what you have achieved in the thesis/dissertation
\afterabstract
% The next part is optional; however it is a good place to thank your
% supervisor and the people responsible for providing computer support ;-)
\prefacesection{Acknowledgements}
I would like to thank...
% The next line is NOT optional and MUST appear
\afterpreface
\chapter{Using latex for your dissertation}
This chapter covers the background material for my thesis and introduces
the notation that I will use throughout.
\section{The Body of Your Dissertation}
Typically, the body of your dissertation is organized into a hierarchical
structure, with numbered or unnumbered headings for chapters, sections,
subsections, sub-subsections, and even smaller sections. The command
\texttt{{\char'134}section} that precedes this paragraph is part of
such a hierarchy.\footnote{This is a footnote.} \LaTeX\ handles the
numbering and placement of these headings for you, when you use the
appropriate heading commands around the titles of the headings. If
you want a sub-subsection or smaller part to be unnumbered in your
output, simply append an asterisk to the command name. Examples of
both numbered and unnumbered headings will appear throughout this sample document.
You can indicate the start of a new paragraph with a blank line in your input
file; that is why this sentence forms a separate paragraph.
\subsection{Type Changes and {\itshape Special} Characters}
We have already seen several typeface changes in this sample. You can
indicate italicized words or phrases in your text with the command
\texttt{{\char'134}textit}; emboldening with the command
\texttt{{\char'134}textbf} and typewriter-style (for instance, for
computer code) with \texttt{{\char'134}texttt}. But remember, you do
not have to indicate typestyle changes when such changes are part of
the \textit{structural} elements of your article; for instance, the
heading of this subsection will be in a sans serif\footnote{Another
footnote here. Let's make this a rather long one to see how it
looks.} typeface, but that is handled by the document class file.
Take care with the use of\footnote{Another footnote.} the
curly braces in typeface changes; they mark the beginning and end of
the text that is to be in the different typeface.
You can use whatever symbols, accented characters, or non-English
characters you need anywhere in your document; you can find a complete
list of what is available in the \textit{\LaTeX\ User's Guide}
\citep{Lamport:LaTeX}.
\subsection{Math Equations}
You may want to display math equations in three distinct styles:
inline, numbered or non-numbered display. Each of
the three are discussed in the next sections. For beginners, this online equation editor may be useful (\url{https://www.codecogs.com/latex/eqneditor.php}). For looking up special characters, see \url{http://mirror.ctan.org/info/short-math-guide}).
\subsubsection{Inline (In-text) Equations}
A formula that appears in the running text is called an
inline or in-text formula. It is produced by the
\textbf{math} environment, which can be
invoked with the usual \texttt{{\char'134}begin\,\ldots{\char'134}end}
construction or with the short form \texttt{\$\,\ldots\$}. You
can use any of the symbols and structures,
from $\alpha$ to $\omega$, available in
\LaTeX~\citep{Lamport:LaTeX}; this section will simply show a
few examples of in-text equations in context. Notice how
this equation:
\begin{math}
\lim_{n\rightarrow \infty}x=0
\end{math},
set here in in-line math style, looks slightly different when
set in display style. (See Section~\ref{sec:display_equations}).
\subsubsection{Display Equations}\label{sec:display_equations}
A numbered display equation---one set off by vertical space from the
text and centered horizontally---is produced by the \textbf{equation}
environment. An unnumbered display equation is produced by the
\textbf{displaymath} environment.
Again, in either environment, you can use any of the symbols
and structures available in \LaTeX\@; this section will just
give a couple of examples of display equations in context.
First, consider the equation, shown as an inline equation above:
\begin{equation}\label{eq:thiseq}
\lim_{n\rightarrow \infty}x=0
\end{equation}
Notice how it is formatted somewhat differently in
the \textbf{displaymath}
environment. Now, we'll enter an unnumbered equation:
\begin{equation*}
\sum_{i=0}^{\infty} x + 1
\end{equation*}
and follow it with another numbered equation:
\begin{equation}
\sum_{i=0}^{\infty}x_i=\int_{0}^{\pi+2} f
\end{equation}
just to demonstrate \LaTeX's able handling of numbering. You can use labels to make references to equations like Eq.~\ref{eq:thiseq}.
\subsection{Tables}
Because tables cannot be split across pages, the best
placement for them is typically the top of the page
nearest their initial cite. To
ensure this proper ``floating'' placement of tables, use the
environment \textbf{table} to enclose the table's contents and
the table caption. The contents of the table itself must go
in the \textbf{tabular} environment, to
be aligned properly in rows and columns, with the desired
horizontal and vertical rules. Again, detailed instructions
on \textbf{tabular} material
are found in the \textit{\LaTeX\ User's Guide}.
Immediately following this sentence is the point at which
Table~\ref{tab:freq} is included in the input file; compare the
placement of the table here with the table in the printed
output of this document.
\begin{table}
\caption{Frequency of Special Characters}
\label{tab:freq}
\centering
\begin{tabular}{crl}
\toprule
Non-English or Math&Frequency&Comments\\
\midrule
\O & 1 in 1,000& For Swedish names\\
$\pi$ & 1 in 5& Common in math\\
\$ & 4 in 5 & Used in business\\
$\Psi^2_1$ & 1 in 40,000& Unexplained usage\\
\bottomrule
\end{tabular}
\end{table}
It is strongly recommended to use the package booktabs~\citep{Fear05}
and follow its main principles of typography with respect to tables:
\begin{enumerate}
\item Never, ever use vertical rules.
\item Never use double rules.
\end{enumerate}
It is also a good idea not to overuse horizontal rules.
\subsection{Figures}
Like tables, figures cannot be split across pages; the best placement
for them is typically the top or the bottom of the page nearest their
initial cite. To ensure this proper ``floating'' placement of
figures, use the environment \textbf{figure} to enclose the figure and
its caption.
This sample document contains an example of \texttt{.pdf} file to be
displayable with \LaTeX. You can also use \texttt{.png} or \texttt{.jpg} files. See Fig.~\ref{fig:rosette}
\begin{figure}
\centering
\includegraphics[width=0.4\textwidth]{rosette}
\caption{A sample graphic
that has been resized with the \texttt{includegraphics} command.}\label{fig:rosette}
\end{figure}
\subsection{Pseudo-code / Algorithms}
See \url{https://en.wikibooks.org/wiki/LaTeX/Algorithms} and Algorithm~\ref{alg:example}.
\begin{algorithm} % enter the algorithm environment
\caption{Calculate $y = x^n$} % give the algorithm a caption
\label{alg:example} % and a label for \ref{} commands later in the document
\begin{algorithmic} % enter the algorithmic environment
\REQUIRE $n \geq 0 \vee x \neq 0$
\ENSURE $y == x^n$
\STATE $y \assign 1$
\IF{$n < 0$}
\STATE $X \assign 1 / x$
\STATE $N \assign -n$
\ELSE
\STATE $X \assign x$
\STATE $N \assign n$
\ENDIF
\WHILE{$N \neq 0$}
\IF{$N$ is even}
\STATE $X \assign X \times X$
\STATE $N \assign N / 2$
\ELSE[$N$ is odd]
\STATE $y \assign y \times X$
\STATE $N \assign N - 1$
\ENDIF
\ENDWHILE
\RETURN{\textbf{true}}
\end{algorithmic}
\end{algorithm}
\chapter{How to handle citations references and bibliography in Latex}
Citations to articles~\citep{bowman:reasoning,
clark:pct, braams:babel, herlihy:methodology},
conference proceedings~\citep{clark:pct} or maybe
books \citep{Lamport:LaTeX, salas:calculus} listed
in the Bibliography section of your
article will occur throughout the text of your dissertation.
You should use BibTeX to automatically produce this bibliography;
you simply need to insert one of several citation commands with
a key of the item cited in the proper location in
the \texttt{.tex} file~\citep{Lamport:LaTeX}.
The key is a short reference you invent to uniquely
identify each work; in this sample document, the key is
the first author's surname and a
word from the title. This identifying key is included
with each item in the \texttt{.bib} file for your dissertation.
You can use textual citations like in \citet{Abril07}, using \texttt{{\char'134}citet} or parenthetical citations like \citep{Abril07}, using \texttt{{\char'134}citep}.
More examples. A paginated journal article \citep{Abril07}, an enumerated
journal article \citep{Cohen07},
a monograph (whole book) \citep{Kosiur01}, a monograph/whole book in a series
(see 2a in spec. document) \citep{Harel79}, a divisible-book such as an
anthology or compilation \citep{Editor00a}, a chapter
in a divisible book \citep{Spector90}, a chapter in a divisible book in a series
\citep{Douglass98}, a multi-volume work as book \citep{Knuth97}, an article in a
proceedings (of a conference, symposium, workshop for example) (paginated
proceedings article) \citep{Andler79}, a proceedings article with all possible
elements \citep{Smith10}, an example of an enumerated proceedings article
\citep{VanGundy07}, an informally published work \citep{Harel78}, a doctoral
dissertation \citep{Clarkson85}, a master's thesis: \citep{anisi03}, online resource \citep{Poker06}, a
video game (Case 1) \citep{Obama08} and (Case 2) \citep{Novak03} and \citep{Lee05}
and (Case 3) a patent \citep{JoeScientist001}, work accepted for publication
\citep{rous08}, 'YYYYb'-test for prolific author \citep{SaeediMEJ10} and
\citep{SaeediJETC10}. Other cites might contain 'duplicate' DOI and URLs (some
SIAM articles) \citep{Kirschmer:2010:AEI:1958016.1958018}. Boris / Barbara
Beeton: multi-volume works as books \citep{MR781536} and \citep{MR781537}.
Citation with DOI: \cite{Kirschmer:2010:AEI:1958016.1958018}.
\section[A shorter version of the title]{An example of a very very long section or chapter title that was not possible to be shorter.}
(The shorter version of the title is used in the table of contents)
\chapter{Example outline of the thesis}
\begin{verbatim}
\chapter{Introduction}
2-5 pages long introduction giving a concise description of the topic of
research,the problem to be tackled, and the way it is going
to be solved. (These descriptions should match the sections
and content of the thesis).
(This chapter is written last).
\chapter{Background}
This chapter contains the literature review.
\section{Description of the topic of study}
\section{Data sets used}
Information about the data sets used, without considering
any major pre-processing of the data.
\section{Methodology}
Explain in detail the methods that are going to be used. The explanation should focus on the usage of the method in the general context, not in the application of the method for your specific application.
\chapter{Analysis A}
\section{Data}
Further information about the data sets, particularly the basic descriptive statistics or analysis.
\section{Results of analysis A}
\section{Discussion of results and link to Analysis B}
\chapter{Analysis B (if Any)}
\chapter{Conclusions}
\bibliography{bibliographyfilename}
\appendix
\chapter{Appendix 1}
\end{verbatim}
\chapter{Conclusions}
\providecommand{\harvardpreambledefs}[1]{#1}
\providecommand{\harvardpreambletext}[1]{}
\bibliographystyle{dcu} %dcu
\cleardoublepage
\phantomsection\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{sample-bibliography}
% Comment the following THREE lines if you do NOT have an Appendix
\appendix
\chapter{This is my first appendix}
.........
% If you need more than one appendix, then just use another \chapter command
%\chapter{Yet Another Appendix}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: