%------------------ About -----------------------
% McMaster Master's/Doctoral Thesis
% LaTeX Template, Version 1.1 (07 Aug 2022)
% Works for only Double Spaced Thesis
% Compiler: pdfLaTeX
% TeX Live version: 2020 (Legacy)
% First modifications according to McMaster SGS 2016 Guideline:
% Dr. Omar Boursalie
%
% Updated according to McMaster SGS 2021 Guideline and made compatible to Overleaf:
% Asif Khan (https://www.linkedin.com/in/asif-k/)
% will occasionally update on Overleaf template page
%
% Thanks to Sajjad Rashidiani for help in rechecking
%---------------- V1.1 --------------------------
% matched updated style format for double spacing by Mac SGS guideline (Aug 2021)
% Removed manual packages (in backup: fancyheadings, natbib) and added packages in preamble to work well in Overleaf
% Organized files, folders and renamed a few to match overall format
% Added hyperlinks and made it dynamic
% Other minor changes
% License:
% CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)
%----------------- preamble ------------------
\documentclass[letterpaper, 12pt]{report} % Letter paper, Times New Roman, 12pt, twoside or oneside
% new packages
\usepackage{lipsum}
%\usepackage[utf8]{inputenc}
\usepackage{comment}
\renewcommand{\contentsname}{Table of Contents} % to rename it from Contents to Table of Contents % https://tex.stackexchange.com/questions/28516/how-to-change-the-title-of-toc
\usepackage{geometry}
\usepackage[compress, numbers]{natbib} % Bibliography formatting
% \usepackage[round, sort, numbers]{natbib}
\usepackage{fancyhdr} % Header and footer styling
%\usepackage{fancyheadings} % deprecated
%\usepackage{gscale_thesis_singlespace} % Single spaced thesis % only double spaced is formatted, you can update it easily if needed
\usepackage{gscale_thesis_doublespace} % Double spaced thesis
\usepackage{setspace} % Allows double spacing but skips headers/footers
\include{definitions} % LaTeX variables for preface pages/headers
\setcounter{tocdepth}{1} % Limits the TOC to chapter and section names
% Additional packages
\usepackage{graphicx} % Allows the inclusion of figures
\usepackage{subcaption} % Allows captions to be added to subfigures
\usepackage[justification=centering]{caption} % Centres caption text
\usepackage[hidelinks]{hyperref} % Linking to LaTeX labels and external URLs
\usepackage{array} % Used for table formatting
\newcolumntype{P}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\usepackage{booktabs} % Fancy-style tables
\usepackage{longtable} % Allows for tables that are more than one page long
\usepackage{float} % Better figure placement control
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem} % Numbered lists
\usepackage[shortcuts]{extdash} % Allows manual hyphenation of hypenated words
\usepackage{amsmath} % Non-standard math symbols
\usepackage{amsfonts} % Extended fonts for mathematics
\numberwithin{equation}{section} % Numbers equations based on their section
%----------------- Document Begins ------------------
\begin{document}
%--------------------Before Preface-------------------------
\beforepreface % Half title page, title page, declaration page
\include{chapters_before_preface/1_lay_abstract} % Lay Abstract
\include{chapters_before_preface/2_abstract} % Abstract
\include{chapters_before_preface/3_dedication} % Dedication
\include{chapters_before_preface/4_acknowledgements} % Acknowledgements
\referencepageswithnotations{notation} % Table of Contents, List of Figures, List of Tables, Notations
%\referencepages % No notations version (choose one)???
\include{chapters_before_preface/6_declaration_of_academic_achievement} % declaration of Academic Achievement
% add your new chapters here according to your text file name
%--------------------After Preface-------------------------
\afterpreface
\include{chapters_after_preface/1_introduction}
\setcounter{figure}{0}
\setcounter{equation}{0}
\setcounter{table}{0}
\include{chapters_after_preface/2_sample_chapter}
\setcounter{figure}{0}
\setcounter{equation}{0}
\setcounter{table}{0}
\include{chapters_after_preface/6_conclusion}
\setcounter{figure}{0}
\setcounter{equation}{0}
\setcounter{table}{0}
%--------------------Appendix-------------------------
\begin{appendix}
\include{chapters_after_preface_appendix/appendix_A}
\setcounter{figure}{0}
\setcounter{equation}{0}
\setcounter{table}{0}
\include{chapters_after_preface_appendix/appendix_B}
\setcounter{figure}{0}
\setcounter{equation}{0}
\setcounter{table}{0}
\end{appendix}
%--------------------Bibliography-------------------------
% The bibliography is set up to allow for multiple bib files
%\bibliographystyle{natbib}
% https://www.overleaf.com/learn/latex/Natbib_citation_styles
% https://www.overleaf.com/learn/latex/Natbib_bibliography_styles
% check which bibliography style your department prefers
\bibliographystyle{abbrvnat}
%\setcitestyle{round} % to have parantheses around the in-text citation
% if you want to add number you can do so using \usepackage[sort, numbers]{natbib}
\bibliography{references/references_first, references/references_another}
\label{NumDocumentPages}
\end{document}
%----------------- Document Ended ------------------