%%Created by Raja Sher Afgun Usmani
%%Base template MIT thesis
\documentclass[12pt,vi,twoside]{mitthesis}
\usepackage{newtxtext,newtxmath}
\usepackage{amsmath}
%\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}% Recommended
\usepackage{lgrind}
\usepackage{multicol}
\usepackage{cmap}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{fancyheadings}
\usepackage{fancyhdr}
\usepackage{textcomp}
\usepackage{hyperref}
\usepackage{titlesec}
\usepackage{enumitem}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{caption}
\usepackage{rotating}
%\usepackage{changepage}
\usepackage{pgfgantt}
%\usepackage{pdflscape} % provides the landscape environment
\usepackage{ragged2e} % provides \RaggedLeft
%\usepackage{geometry} % to change margins
\usepackage{hyperref}
\usepackage{natbib}
\citestyle{aysep={,}}
\usepackage{url}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{array}
\usepackage{subcaption}
\usepackage{xcolor}
\usepackage{appendix}
\usepackage{afterpage}
\usepackage[en-US]{datetime2}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
%\usepackage{minted}
%\usepackage{pdfpages}
%\lstdefinestyle{sharpc}{language=[Sharp]C,}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
%custom title spacing
%\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
%\titlespacing\subsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
%\titlespacing\subsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
%custom section & paragraph
%\setcounter{secnumdepth}{4}
%
%\titleformat{\paragraph}
%{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
%\titlespacing*{\paragraph}
%{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
%set hyperlink settings
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\pagestyle{plain}
\titleclass{\chapter}{straight}
\titleformat{\chapter}{\bfseries\Large\centering}{\thechapter.}{0.4em}{}
\titlespacing*{\chapter}{0mm}{3em}{1em}
%empty header for page
\fancypagestyle{EmptyHeader}{%
\fancyhead{}
\renewcommand{\headrulewidth}{1pt}
}
%References details
%\usepackage[style=authoryear-ibid,backend=biber]{biblatex}
%\addbibresource{References/refFile.bib}% Syntax for version >= 1.2
%\renewcommand*{\nameyeardelim}{\addcomma\space}
\begin{document}
%The \raggedbottom declaration makes all pages the height of the text on that page. No extra vertical space is added.
\raggedbottom
%Set Table of Contents Depth
%\setcounter{tocdepth}{3}
%Set Section Depth
\setcounter{secnumdepth}{3}
%Empty footer for first pages
\pagestyle{empty}
\include{StartPages/cover}
% \afterpage{\blankpage}
\include{StartPages/abstract}
\let\cleardoublepage\clearpage
\include{StartPages/copyright}
\include{StartPages/DECLARATION}
\include{StartPages/ACKNOWLEDGEMENTS}
\include{StartPages/contents}
\pagestyle{plain}
\pagenumbering{roman}
\include{StartPages/FiguresTables}
\include{StartPages/symbols}
%Header & Footer
\pagenumbering{arabic}
%Include chapters - every chapter is in a separate folder and file
\include{Chapters/chap1}
\let\cleardoublepage\clearpage
\include{Chapters/chap2}
\let\cleardoublepage\clearpage
\include{Chapters/chap3}
\let\cleardoublepage\clearpage
% \null\newpage
\include{Chapters/chap4}
\let\cleardoublepage\clearpage
\include{Chapters/chap5}
\let\cleardoublepage\clearpage
%\rhead{BIBLIOGRAPHY}
% \chapter*{REFERENCES}
\thispagestyle{EmptyHeader}
\label{biblio}
\bibliography{References/refFile}
\bibliographystyle{agsm}
\let\cleardoublepage\clearpage
\include{Chapters/appendix}
% \let\cleardoublepage\clearpage
% \rhead{\leftmark}
% \let\cleardoublepage\clearpage
% \include{StudyPlan/plan}
\end{document}