% A4 paper
% main font size 12
% article format
\documentclass[a4paper, 12pt,onecolumn]{article}

% packages to be included

% used to allow [H] to display images
\usepackage{float}
% used for displaying images
\usepackage{graphicx}
% \usepackage{pgfgantt}
 % used to refer to images, tables, etc
\usepackage{hyperref}
% package used to control the margin of the page
\usepackage{geometry}
% package used to include pdf files
\usepackage{pdfpages}
% package used to turn page landscape
\usepackage{pdflscape}
% package used to allow tables to flow over page boundaries
\usepackage{longtable}
\usepackage{subcaption}

\usepackage[toc,page]{appendix}

\usepackage{listings}
\usepackage{color}
\usepackage{epstopdf}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{multirow,bigdelim}

% for banner
\usepackage{tikz}
% for title page
\usepackage{setspace}
\usepackage{multicol} 
\usepackage{makecell} 

% Caption in bold/italic and set depth to 2
\usepackage{chngcntr}
\usepackage[format=plain,labelfont={bf,it},font=it]{caption}
\counterwithin{figure}{subsection}
\counterwithin{table}{subsection}

% define colours
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}

% say how the code should be formatted if put into report
\lstdefinestyle{mystyle}
{
	backgroundcolor = \color{white},   
	commentstyle = \color{codegreen},
	keywordstyle = \color{blue},
	numberstyle = \tiny\color{codegray},
	stringstyle = \color{codepurple},
	basicstyle = \footnotesize,
	breakatwhitespace = false,         
	breaklines = true,
	postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
	columns=fullflexible,          
	captionpos = b,                    
	keepspaces = true,                 
	numbers = left,                    
	numbersep = 5pt,                  
	showspaces = false,                
	showstringspaces = false,
	showtabs = false,                  
	tabsize = 2
}

% set the style to be the custom style defined above
\lstset{style = mystyle}

% no indentation
\setlength\parindent{0pt}

\begin{document}
	\begin{titlepage}
	\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
	\begin{tikzpicture}[remember picture, overlay]
	\node [anchor=north east, inner sep=0pt]  at (current page.north east)
	{\includegraphics[width=\paperwidth]{graphics/ucl-banner-dl-port-outline.eps}};
	\end{tikzpicture}\\[3cm]
	\center
	
	\textsc{\Large University College London}\\[0.5cm]
	\textsc{\large ELEC0033: Internet Of Things}\\[0.5cm]
	
	\HRule \\[0.4cm]
	\setstretch{1.5}
	{ \huge \bfseries Final project report}\\[0.4cm]
	\setstretch{1.0}
	\HRule \\[1.0cm]
	
	\Large \emph{Authors:}\\[0.4cm]
	\newcommand{\addauthor}[3]{\thead{\Large #1 \textsc{#2}\\\normalsize{\textbf{SN:} #3}}}
	\begin{tabular}{ c c }
		\addauthor{Sreethyan}{Aravinthan}{17034996}
		&
		\addauthor{Constantina}{Papavasileiou}{17001295}
		\\
		\addauthor{Mindaugas}{Jarmolovi\v{c}ius}{17139494}
		&
		\addauthor{Miriam}{Robledo}{17080614}
	\end{tabular}

	
	\vfill
	{\large\today}\\[2cm]
	
	\end{titlepage}
	% start on new page
	\newpage
	
    \tableofcontents
       
	\newpage
	
	% include all the files
	\input{executive_summary.tex}
	\input{business_case.tex}
	\input{design_methodology_and_implementation.tex}
	\input{experimental_results.tex}
	\input{engineering_trade_offs.tex}
	
    \bibliographystyle{IEEEtran}
    \bibliography{references.bib}
    
    \input{appendices}

\end{document}
