%%Created by Raja Sher Afgun Usmani w.h.o R. Afzal & Oussama Raach
%%Base template MIT thesis
\documentclass[12pt,vi,twoside]{mitthesis}
%Font Type
\usepackage{newtxtext,newtxmath}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage[english]{babel}
\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{caption}
\usepackage{url} %allows URL's in bibliography to be safe
\usepackage[export]{adjustbox} %adjusts table to text width
\usepackage{float} %to control float of figures and tables
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{rotating}
\usepackage{lscape}
\usepackage{listings}
\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}
}
%%REMEMBER TO CHANGE DEFAUT BIBLIOGRAPHY TOOL TO BIBER
%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}
\include{StartPages/abstract}
\let\cleardoublepage\clearpage
\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
\include{Chapters/plan}
\let\cleardoublepage\clearpage
\include{Appendix/appendix}
\let\cleardoublepage\clearpage
\rhead{BIBLIOGRAPHY}
\include{References/biblio}
\let\cleardoublepage\clearpage
\rhead{\leftmark}
%\appendix
\end{document}