\documentclass[12pt]{graphicsclass}
\usepackage[utf8]{inputenc}
\usepackage{palatino}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage[labelfont=bf]{caption}
\usepackage{subcaption}
\usepackage{setspace}
\captionsetup[table]{font = {stretch=1.35}}
\captionsetup[figure]{font = {stretch=1.35}}
\usepackage[margin=1in]{geometry}
\linespread{1.6}
\usepackage[hidelinks]{hyperref}
\usepackage{cite}
\usepackage{xcolor}
\usepackage{overpic}
\usepackage[all]{nowidow}
\title{
{TITLE}\\~\\~\\
{\large NAME, School of Computer Science \\
McGill University, Montreal \\
MONTH, YEAR \\~\\~\\
A thesis submitted to McGill University in partial fulfillment of the requirements of the degree of \\~\\ Master of Computer Science }\\~\\
}
\setcounter{page}{2}\renewcommand{\thepage}{\roman{page}}
\author{\textcopyright AUTHOR, DATE}
\date{}
\begin{document}
\maketitle
\chapter*{Abstract}
\label{sec:engAbstract}
\addcontentsline{toc}{section}{\nameref{sec:engAbstract}}
ABSTRACT HERE
\chapter*{Abrégé}
\label{sec:frAbstract}
\addcontentsline{toc}{section}{\nameref{sec:frAbstract}}
\chapter*{Acknowledgements}
\label{sec:ded}
\addcontentsline{toc}{section}{\nameref{sec:ded}}
\tableofcontents
\listoffigures %
\addcontentsline{toc}{section}{\listfigurename}
\listoftables
\addcontentsline{toc}{section}{\listtablename}
\clearpage
\pagenumbering{arabic} % restart page numbers at one, now in arabic style
%% start of mainmatter
\input{Chapters/TemplateChapter.tex}
\bibliography{references}
\bibliographystyle{acm}
\end{document}