%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PhD thesis : Ajit Kumar Sahoo, (ajit@uohyd.ac.in, sahooajitkumar85@gmail.com)
% School of Computer and Information Sciences, University of Hyderabad,India-50046
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,a4paper,oneside]{report} %12 point font for Times New Roman
\usepackage{graphicx} %for images and plots
\usepackage[letterpaper, left=1.5in, right=1in, top=1in, bottom=1in]{geometry} %left 2inch for binding
\usepackage{setspace} %use this package to set line spacing as desired
\usepackage{times} %set Times New Roman as the font
\usepackage[explicit]{titlesec} %title control and formatting
\usepackage[titles]{tocloft} %table of contents control and formatting
%\usepackage[backend=bibtex, sorting=none, bibstyle=ieee]{biblatex} %reference manager
%\usepackage[backend=biber,style=ieee,citestyle=numeric,sortcites,natbib=true,sorting=none]{biblatex}
%style=authoryear or numeric
\usepackage[square,sort,comma,numbers]{natbib}
%\usepackage[round,comma,colon,sort&compress]{natbib}
%https://www.overleaf.com/learn/latex/Bibliography_management_with_natbib
\usepackage[bookmarks=true, hidelinks]{hyperref}
\usepackage[page]{appendix} %for appendices
\usepackage{rotating} %for rotated, landscape images
\usepackage[normalem]{ulem} %for underlined section titles
\usepackage{makeidx}
\usepackage{titlesec}
\usepackage{acronym}
\usepackage{nomencl}
\usepackage{epsf}
\usepackage{fancyhdr}
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage{upquote}
\usepackage{float}
\usepackage{microtype}
\usepackage{comment}
\usepackage{soul}
\usepackage{booktabs}
\usepackage{makecell}
\usepackage{xcolor}
%\usepackage[square,sort,comma,numbers]{natbib}
%\usepackage{cite}
%\usepackage[round,numbers]{natbib}
%\usepackage[titletoc]{appendix}
\usepackage{subfiles} % Best loaded last in the preamble
\usepackage{blindtext}
%\setstretch{1.5}
%\linespread{1.3}
%\usepackage[automake]{glossaries}
\makeindex
%\makeglossaries
%%%%%%%%%%%%%%%%%%%%%%%%%---ADDED Packages for Acronym and Glossary------%%%%%%%%%%%%%%%%%%%%%
%\makenomenclature
\makenomenclature
\usepackage{etoolbox}
%% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\renewcommand{\nompreamble}{\begin{multicols}{2}}
\renewcommand{\nompostamble}{\end{multicols}}
%%%Renaming Biblography to references %%%%%%%
\usepackage[english]{babel}
\addto{\captionsenglish}{%
\renewcommand{\bibname}{REFERENCES}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx}
\usepackage{epstopdf}
%\usepackage[ruled]{algorithm}
%\usepackage{algorithm}
\usepackage[ruled]{algorithm}
\usepackage{arevmath} % For math symbols
\usepackage[noend]{algpseudocode}
\usepackage{graphics}
%\usepackage{soul}
\usepackage{hyperref} % hyperlinks for references.
\usepackage{amssymb,amsmath} % easier math formulae, align, subequations \ldots
\DeclareMathOperator{\sign}{sgn}
\usepackage{subfig}
\usepackage{lscape}
% \usepackage[utopia]{mathdesign}
\usepackage{algpseudocode}
\usepackage{epsfig}
\usepackage{indentfirst}
\usepackage{tikz}
\usepackage{amsmath,amsthm}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{color}
\usepackage{textcomp}
\usepackage{verbatim}
%\usepackage[ruled,algonl,vlined]{algorithm2e}
\usepackage{setspace}
\usepackage{enumerate}
\usepackage{mathtools}
%\usepackage[comma,authoryear]{natbib}
%\usepackage[numbers]{natbib}
%\setcitestyle{numbers}
%%%%%For for each loop%%%%%%%%%%%%%%%%%%%%%%%%%
\algnewcommand\algorithmicforeach{\textbf{for each}}
\algdef{S}[FOR]{ForEach}[1]{\algorithmicforeach\ #1\ \algorithmicdo}
\usepackage{silence}
\WarningFilter*{latex}{Text page \thepage\space contains only floats}
\usepackage{caption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{lipsum}
%\usepackage[normalem]{ulem} %to strike the words
\usepackage{setspace}
\usepackage{lipsum} %For dummy text and paragraphs
%\renewcommand{\contentsname}{\hfill\bfseries\Large Contents\hfill}
%\renewcommand{\cftaftertoctitle}{\hfill}
%\renewcommand{\listtablename}{\hfill\bfseries\Large List of Tables}
%\renewcommand{\cftaftertoctitle}{\hfill}
%%%%%%%%%%%%%%%%%%%%% Start of Document%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\doublespacing %set line spacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title Page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{titlepage.tex}
\currentpdfbookmark{Title Page}{titlePage} %add PDF bookmark for this page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Certificate Page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{certificate.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Declaration Page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{declaration.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Acknowledgments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pagenumbering{roman}
%\addcontentsline{toc}{chapter}{Acknowledgments}
%\setcounter{page}{5} % set the page number appropriately based on the number of intro pages
\input{acknowledgements.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Dedication
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{dedication.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Abstract
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{abstract.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\addtocontents{toc}{\cftpagenumbersoff{chapter}}
%\currentpdfbookmark{Acknowledgments}{acknowledgments}
%\addtocontents{toc}{\cftpagenumberson{chapter}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Table of Contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Format for Table of Contents
\renewcommand{\cftchapdotsep}{\cftdotsep} %add dot separators
\renewcommand{\cftchapfont}{\bfseries} %set title font weight
\renewcommand{\cftchappagefont}{} %set page number font weight
\renewcommand{\cftchappresnum}{Chapter }
\renewcommand{\cftchapaftersnum}{:}
\renewcommand{\cftchapnumwidth}{5em}
\renewcommand{\cftchapafterpnum}{\vskip\baselineskip} %set correct spacing for entries in single space environment
\renewcommand{\cftsecafterpnum}{\vskip\baselineskip} %set correct spacing for entries in single space environment
\renewcommand{\cftsubsecafterpnum}{\vskip\baselineskip} %set correct spacing for entries in single space environment
\renewcommand{\cftsubsubsecafterpnum}{\vskip\baselineskip} %set correct spacing for entries in single space environment
%format title font size and position (this also applies to list of figures and list of tables)
%\titleformat{\chapter}[display]
%{\normalfont\huge\filleft}{\chaptertitlename\ \thechapter}{0pt}{\MakeUppercase{#1}}
\titleformat{\chapter}[display]
{\normalfont\huge\filleft}{\chaptertitlename\ \thechapter}{0pt}{{#1}}
\renewcommand\contentsname{Table of Contents}
\begin{singlespace}
\tableofcontents
\end{singlespace}
\currentpdfbookmark{Table of Contents}{TOC}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% List of figures and tables and Abbreviations
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addcontentsline{toc}{chapter}{List of tables}
\begin{singlespace}
\setlength\cftbeforetabskip{\baselineskip} %manually set spacing between entries
\listoftables
\end{singlespace}
\clearpage
\addcontentsline{toc}{chapter}{List of figures}
\begin{singlespace}
\setlength\cftbeforefigskip{\baselineskip} %manually set spacing between entries
\listoffigures
\end{singlespace}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{abbreviations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{nomenclature}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapters formatting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% resume page numbering for rest of document
\clearpage
\pagenumbering{arabic}
\setcounter{page}{1} % set the page number appropriately
% Adjust chapter title formatting
\titleformat{\chapter}[display]
%{\normalfont\bfseries\filcenter}-- Edited
{\normalfont\bfseries\Huge\filleft}{\MakeUppercase\chaptertitlename\ \thechapter}{0pt}{{#1}} %spacing between titles
\titlespacing*{\chapter}
{0pt}{0pt}{30pt} %controls vertical margins on title
% Adjust section title formatting
\titleformat{\section}{\normalfont\LARGE\bfseries}{\thesection}{1em}{#1}
% Adjust subsection title formatting
%\titleformat{\subsection}{\normalfont}{\uline{\thesubsection}}{0em}{\uline{\hspace{1em}#1}}
\titleformat{\subsection}{\normalfont\Large\bfseries}{\thesubsection}{1em}{#1}
% Adjust subsubsection title formatting
\titleformat{\subsubsection}{\normalfont\large\bfseries}{\thesubsection}{1em}{#1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter 1 (Introduction)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%input{chapter1}
\subfile{chapter1.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter 2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subfile{chapter2.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subfile{chapter3.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter 4
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subfile{chapter4.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter 5
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subfile{chapter5.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter 6
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subfile{chapter6.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter 7 (Conclusion and future scope)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subfile{chapter7.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Appendices
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{appendix.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Add your bibliography file here
%\nocite{*}
% References
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{singlespace} % use single-line spacing for multi-line text within a single reference
\addcontentsline{toc}{chapter}{References}
\bibliography{References}
\bibliographystyle{ieeetr}
%abbrv,acm,plain,apalike, unsrt,ieeetr
\end{singlespace}
%\addcontentsline{toc}{chapter}{References} %add References section to Table of Contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%*****************************END**********************************