%-----------------------------------------------------%
% DO NOT CHANGE THE PREAMBLE %
%-----------------------------------------------------%
\documentclass[a4paper,12pt,english,twoside]{book}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{4}
% Required LaTeX packages
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,left=1in,right=1in,top=1in,bottom=1in,bindingoffset=0.5in]{geometry}
\usepackage{graphicx}
\usepackage{import}
\usepackage{verbatim}
\usepackage{amsmath}
\usepackage{titlesec}
\usepackage{afterpage}
\usepackage{dashrule}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage[ruled,vlined]{algorithm2e}
\usepackage{multirow}
\usepackage{comment}
\usepackage{array}
\usepackage{ragged2e}
\usepackage{type1cm}
\usepackage{dirtytalk}
\usepackage{epigraph}
\usepackage{setspace}
\usepackage{indentfirst}
\usepackage[super]{nth}
\usepackage{enumitem}
\usepackage{caption}
\usepackage{lipsum}
% [label=Step \arabic{enumi}.,ref=Step \arabic{enumi}, leftmargin=*]
%----------------------------------------------
% ******** FANCY HEADERS ********* %
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
%----------------------------------------------
% ******** ABBREVIATIONS ********* %
%\usepackage{acronym}
%\renewcommand{\acsfont}[1]{\textbf{#1}}
\usepackage[acronym,toc,nonumberlist,nomain]{glossaries-extra}
\renewcommand*{\glsnamefont}[1]{\textbf{#1}}
\renewcommand*{\acronymfont}[1]{\textbf{#1}}
%\renewcommand{\glsfirstlongdefaultfont}[1]{\emph{#1}}
\makeglossaries
\setabbreviationstyle[acronym]{long-short}
\import{FRONT MATTER/}{PAGE13-List_of_Abbreviations}
%----------------------------------------------
% ******** NOMENCLATURE ********** %
\usepackage[intoc]{nomencl}
\makenomenclature
\renewcommand{\nomname}{List of Symbols}
\renewcommand{\nompreamble}{A list of all the symbols, their representative quantities and units has been provided below so as to familiarize the readers with the frequently used symbols within this thesis.\vspace{3mm}}
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{Symbols for Physical Systems}{%
\ifstrequal{#1}{B}{Scalar Symbols (English Alphabets)}{%
\ifstrequal{#1}{C}{Scalar Symbols (Greek Alphabets)}{%
\ifstrequal{#1}{D}{Vector Symbols (English \& Greek Alphabets)}{%
\ifstrequal{#1}{E}{Matrix Symbols (English Alphabets)}{}}}}}%
]}
% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
% ******** PDF, URL AND HYPERLINK PACKAGES ********* %
\usepackage{url}
\usepackage[dvipsnames]{xcolor}
\usepackage{indentfirst}
\usepackage{hyperref}
\hypersetup{colorlinks=false}
%----------------------------------------------
% **** CORRECT BAD HYPHENATION HERE ************ %
\hyphenation{op-tical net-works semi-conduc-tor}
%----------------------------------------------
% ************* DROPCAP PACKAGE ******************** %
\usepackage{type1cm}
\usepackage{lettrine}
\setlength{\DefaultNindent}{0pt}
\setlength{\DefaultFindent}{3pt}
\setcounter{DefaultLines}{2}
\renewcommand{\LettrineTextFont}{\rmfamily}
\renewcommand{\LettrineFontHook}{\fontfamily{ptm}}
%----------------------------------------------
%***************** GRAPHICS PACKAGES AND COMMANDS **************%
\usepackage{float}
\usepackage{subfigure}
\usepackage{multicol}
\graphicspath{{CHAPTER_IMAGES/}}
\setlength\extrarowheight{2pt}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\def\blankpage{%
\clearpage%
\thispagestyle{empty}%
\null%
\clearpage}
\newtheorem{theorem}{Theorem}
\newcolumntype{R}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%----------------------------------------------
% *********** CHAPTER TITLE PACKAGE **************** %
\titleformat{\chapter}[display]{\normalfont\Large\bfseries}{\filleft \color{Plum}\fontsize{18}{35} \selectfont \MakeUppercase{\textbf{Chapter \thechapter}}}{0.01ex}{\vspace{1mm}\filleft \color{Black}\fontsize{30}{35}\selectfont{\textbf{}}}
%----------------------------------------------
% ************** BIBLIOGRAPHY PACKAGE ***************** %
\usepackage{babel,csquotes,xpatch}% recommended
\usepackage[backend=biber, bibstyle=ieee, citestyle=ieee, mincitenames=1, maxcitenames=1, url=false, sorting=none, doi=true,
eprint=false]{biblatex}
\addbibresource{BIBLIOGRAPHY/Thesis_Bibliography.bib}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map[overwrite]{
\perdatasource{Thesis_Bibliography.bib}
\step[fieldset=keywords, fieldvalue={,inbib}, append]
}
}
}
%
%-----------------------------------------------------%
% DO NOT CHANGE TILL HERE %
%-----------------------------------------------------%
%
%**************** BEGIN DOCUMENT *********************%
%
\begin{document}
%***************** FRONT MATTER *****************%
\pagestyle{empty}
\import{FRONT MATTER/}{PAGE01-Title_Page}
\blankpage
\import{FRONT MATTER/}{PAGE02-Publication_List_New}
\newpage
\import{FRONT MATTER/}{PAGE03-Statement_of_Originality}
\blankpage
\import{FRONT MATTER/}{PAGE04-Certificate_from_Supervisors}
\blankpage
\import{FRONT MATTER/}{PAGE05-Dedication}
\blankpage
\import{FRONT MATTER/}{PAGE06-Quotes}
\newpage
\import{FRONT MATTER/}{PAGE07-Poem}
\newpage
\import{FRONT MATTER/}{PAGE08-Acknowledgement}
\blankpage
\clearpage
%--------------------------------------------------
%************* NUMBERED FRONT PAGES ************%
\frontmatter
\pagestyle{plain}
\pagenumbering{roman}
\setcounter{page}{1}
\onehalfspacing
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\import{FRONT MATTER/}{PAGE10-Abstract}
\clearpage
\singlespacing
\phantomsection
\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents
\blankpage
\phantomsection
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\blankpage
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}
\blankpage
\setlist[description]{leftmargin=!, labelwidth=7em}
\printglossary[type=\acronymtype, style = listgroup, title={List of Abbreviations}]
\glsaddallunused[\acronymtype]
\setlist[description]{style=standard} % reset settings to default
\import{FRONT MATTER/}{PAGE15-List_of_Symbols}
\printnomenclature
\blankpage
\clearpage
%----------------------------------------------------
%***************** CHAPTER_1 **********************%
\mainmatter
\pagenumbering{arabic}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\fancyhead[LE,RO]{Chapter 1: Introduction} % Change Chapter Heading here
\renewcommand{\headrulewidth}{1pt}
\onehalfspacing
\import{CHAPTERS/}{Chapter1} % Change Chapter Number here
\blankpage
\clearpage
%----------------------------------------------------
%***************** CHAPTER_2 **********************%
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\fancyhead[LE,RO]{Chapter 2: Problem Definition and Formulation} % Change Chapter Heading here
\renewcommand{\headrulewidth}{1pt}
\onehalfspacing
\import{CHAPTERS/}{Chapter2} % Change Chapter Number here
\blankpage
\clearpage
%\csname @openrightfalse\endcsname
%----------------------------------------------------
%***************** CHAPTER_3 **********************%
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\fancyhead[LE,RO]{Chapter 3: Design and Development} % Change Chapter Heading here
\renewcommand{\headrulewidth}{1pt}
\onehalfspacing
\import{CHAPTERS/}{Chapter3} % Change Chapter Number here
\blankpage
\clearpage
%----------------------------------------------------
%***************** CHAPTER_4 **********************%
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\fancyhead[LE,RO]{Chapter 4: Results and Discussion} % Change Chapter Heading here
\renewcommand{\headrulewidth}{1pt}
\onehalfspacing
\import{CHAPTERS/}{Chapter4} % Change Chapter Number here
\blankpage
\clearpage
%----------------------------------------------------
%***************** CHAPTER_5 **********************%
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\fancyhead[LE,RO]{Chapter 5: Conclusions} % Change Chapter Heading here
\renewcommand{\headrulewidth}{1pt}
\onehalfspacing
\import{CHAPTERS/}{Chapter5} % Change Chapter Number here
\blankpage
\blankpage
\clearpage
%----------------------------------------------------
%***************** BIBLIOGRAPHY **********************%
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\fancyhead[LE,RO]{Bibliography}
\renewcommand{\headrulewidth}{1pt}
\printbibliography[heading=bibintoc,title={Bibliography}]
% Signature Fields %
\vspace{3.0cm}
\noindent \large Signature of the Candidate : \hdashrule[0.5ex]{5cm}{1pt}{1mm}
\newline
\indent\indent\indent\indent\indent\indent\indent\indent\indent\indent\indent\indent(\normalsize Author's Name)\\
\vspace{0.5cm}
\newline
\large Date :
\vspace{1.0cm}
\clearpage
\end{document}