%%%%%%%%%%%% MAIN PACKAGES %%%%%%%%%%%%
\documentclass{template}
\usepackage{graphicx,parskip,appendix,float}
\usepackage[ruled]{algorithm2e}
\usepackage{url,amsmath,amssymb,fancybox,listings,pdfpages,caption,multicol,datetime,rotating, booktabs}
\usepackage{csquotes}
%\usepackage[usenames,dvipsnames]{color} % Don't use it, as it clashes with csquote
% 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% LINE NUMBERS %%%%%%%%%%%%
% NOTE: If you want to add line numbers to your document and make it easier for markers to provide you feedback, uncomment the following two lines
%\usepackage{lineno}
%\linenumbers
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% REFERENCING STYLES %%%%%%%%%%%%
% NOTE: 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!
% NOTE: The command below imports your references from thesis.bib
\addbibresource{thesis.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% TRACK CHANGES AND ANNOTATIONS %%%%%%%%%%%
% NOTE: 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
%\usepackage{todonotes}
%\usepackage{soul}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%% HYPERREF %%%%%%%%%%%%
% NOTE: This package highlights links to your sections/chapters in the compiled pdf, which is always good to have. For this package to work properly, it has to be the last one to be declared
\usepackage[pagebackref=false,pdffitwindow=true]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%% DOCUMENT CONFIGURATION SETTINGS (ignore unless you really need to change something!) %%%%%%%%%%%%
\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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%% YOUR DOCUMENT %%%%%%%%%%%%
\begin{document}
\DeclareGraphicsExtensions{.jpg,.png,.gif,.pdf} % 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
% Replace accordingly
\title{\huge{Report Title}}
\author{Author Full Name}
\degreetitle{Degree Title}
\rpttype{Degree}
\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} % NOTE: Before compiling your final document, please don't forget to "comment this section". That is, adding a % before the \include to omit it, 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
%N OTE: set the style for the bibliography and display the references used within the document
\printbibliography
\normalsize
% If you are not using an appendix, comment the following two lines
\appendix
\include{appendix/appendix}
\end{document} % NOTE: END of document, nothing after this point
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%