\documentclass{template}
\usepackage{graphicx,parskip,appendix,float}
\usepackage[ruled]{algorithm2e}
\usepackage{url,amsmath,amssymb,fancybox,listings,pdfpages,caption,multicol,datetime,rotating, booktabs}
%\usepackage[usenames,dvipsnames]{color} % Don't use it as it clashes with csquote
\usepackage{csquotes}
%NOTE: When pagebackref=true an error will appear at the end of compiling. press `q' to ignore
%NOTE: Referencing Algorithms does not work if this usepackage is before the hyperref include.!!
%NOTE: More packages may need to be added to provide additional functionality
%%%%%%%%%%%% REFERENCING STYLES %%%%%%%%%%%%
% Comment/Uncomment based on preference or requirement
\usepackage[style=authoryear,giveninits,backend=biber]{biblatex} % Harvard, RGU prefers this
%\usepackage{biblatex} % Vancouver, most people prefer this as it is simpler to follow!
\addbibresource{thesis.bib}
%%%%%%%%%%%% TRACK CHANGES AND ANNOTATIONS %%%%%%%%%%%%
%\usepackage{todonotes}
%\usepackage{soul}
% If you want to add notes, highlight or have your supervisor track changes, we recommend using these packages.
% TODONOTES: https://tug.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf
% Soul: https://cs.brown.edu/about/system/managed/latex/doc/soul.pdf
%%%%%%%%%% HYPERREF %%%%%%%%%%%%%%%%%%%%%%
\usepackage[pagebackref=false,pdffitwindow=true]{hyperref} %NOTE: For this package to work properly, it has to be the last one!
\hypersetup{
pdftitle = {Report Title},
pdfauthor = {Author Name},
pdfsubject = {Subject Area},
pdfkeywords = {Comma separated list of keywords},
colorlinks = true, anchorcolor = blue, filecolor = blue, urlcolor = blue,
linkcolor = blue, %NOTE: change (blue) to (colIdentifier) to have links within the document in Black
citecolor = blue, %NOTE: change (blue) to (colIdentifier) to have citation links within the document in Black
}
\definecolor{colBackGrnd}{rgb}{1,1,0.8}
\definecolor{colKeys}{rgb}{0,0,1}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{0,.5,0}
\definecolor{colString}{rgb}{0,0,1}
\definecolor{colWhite}{rgb}{1,1,1}
\newcommand{\MyHookSign}{\hbox{\ensuremath\hookleftarrow}}
\newtheorem{Theorem}{Theorem}
\newtheorem{Proposition}[Theorem]{Proposition}
\newtheorem{Lemma}[Theorem]{Lemma}
\newtheorem{Proof}[Theorem]{Proof}
\newtheorem{Remark}[Theorem]{Remark}
\newtheorem{Claim}[Theorem]{Claim}
\newtheorem{Example}[Theorem]{Example}
\newtheorem{Definition}[Theorem]{Definition}
%NOTE: Setup for including program listings
\lstset{%
float=H,
basicstyle=\ttfamily\footnotesize,
identifierstyle=\color{colIdentifier},
keywordstyle=\color{colIdentifier}, %
stringstyle=\color{colIdentifier},
commentstyle=\color{colIdentifier}, %
columns=flexible,
tabsize=2,
frame=single,
extendedchars=true, %
showspaces=false,
showstringspaces=false,
numbers=left, %
numberstyle=\footnotesize,
breaklines=true,
prebreak={\space\MyHookSign},
language=Java,
backgroundcolor=\color{colBackGrnd},
breakautoindent=true, %
captionpos=b%
} %\hypersetup{colorlinks=true, citecolor=\color{colIdentifier}}
\sloppy %NOTE: To ensure the Right Hand Margin is used (Especially for long URLS)
%NOTE: END of the document configuration settings
\begin{document}
\DeclareGraphicsExtensions{.jpg,.png,.gif,.pdf}
%NOTE: When inserting Figures if the extension of the graphic file is not provided LaTeX will automatically search
% for the extensions declared above, in the order declared.
\title{\huge{Report Title}}
\author{Author Full Name}
\degreetitle{Degree Title} % Replace with appropriate degree
\rpttype{Degree} % Replace MSc with BSc for Honours Degree Year projects.
\principaladviser{Dr. XXX XXX}
\include{intro/abstract}
\listofalgorithms %NOTE: Will generate a list of Algorithms in the Table of Contents Section
\lstlistoflistings %NOTE: Will generate a list of Program Listings in the Table of Contents Section
%NOTE: Include the relative reference for each chapter to be included
% dividing the thesis file structure into a number of directories aids development
% format: directoryName/filename (the .tex extension is not required for the filename)
\include{intro/introduction}
\include{background/background}
\include{design/design}
\include{impl/implementation}
\include{eval/evaluation}
\include{conclude/conclude}
\include{usingLatex/usingLatex} % We recommend commenting this section out (that is, adding a % symbol before the \include) as this section only contains the instructions and a sample on how to use this template
\footnotesize %NOTE: reduced the size of the text for the bibliography
%NOTE: set the style for the bibliography and display the references used within the document
\printbibliography
\normalsize
\appendix
\include{appendix/appendix}
\end{document} %NOTE: END of document, nothing after this point