%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Format Made as institute guidelines, by Dr. Ashish Siddharth (20DR0175), IIT ISM Dhanbad.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper, 12pt, openright]{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx}
%For sub figure bracket i.e. Fig. 1(a)
\usepackage[labelformat=simple]{subcaption}
\renewcommand\thesubfigure{(\alph{subfigure})}
\usepackage{setspace} %for double spacing etc
\usepackage[top=3cm, bottom=3cm, right=2cm, left=4cm, twoside]{geometry} %for margins
\usepackage{emptypage} %to make empty pages number less and to use \cleardoublepage
\usepackage[]{rotate}
\usepackage{adjmulticol}%for multiple columns in certificate
%for algorithm and pseudo code
\usepackage{algorithm}
\usepackage{algcompatible}
%\usepackage{algorithmicx}
%\usepackage{pseudocode}
%\usepackage{algpseudocode}
\usepackage{epstopdf}
\usepackage{latexsym}
\usepackage{epstopdf}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{upgreek}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{comment}
\usepackage[]{rotating}
\usepackage[cmex10]{amsmath}
\usepackage{url}
\usepackage{bm}
\usepackage[dvipsnames]{xcolor}
\usepackage[]{adjustbox}
\usepackage{parskip}
\usepackage{placeins}
\usepackage{hyperref}
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = blue, %Colour for external hyperlinks
linkcolor = blue, %Colour of internal links
citecolor = red %Colour of citations
}
\usepackage{fontspec}
\setmainfont{Times New Roman}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont \Large\raggedleft}
{\MakeUppercase{\chaptertitlename}%
\rlap{ \resizebox{!}{1.5cm}{\thechapter} \rule{5cm}{1.5cm}}}
{12pt}{\Huge}
\titlespacing*{\chapter}{0pt}{30pt}{20pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand{\greektext}{\fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
\providecommand{\textgreek}[1]{\leavevmode{\greektext #1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[square,numbers,sort&compress]{natbib}
\bibliographystyle{unsrtnat}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\fancypagestyle{plain}{% first page of chapters
\fancyhf{} % clear all header and footer fields
\fancyhead{}
\fancyhead[LO,LE]{}
\fancyhead[RO,RE]{\thepage}
\fancyfoot[LE,RO]{}
\fancyfoot[LO,RE]{}
\renewcommand{\headrulewidth}{0.4pt} % no rule
\renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{cover}{% first page of chapters
\fancyhf{} % clear all header and footer fields
\fancyhead{}
\fancyhead[LO,LE]{}
\fancyhead[RO,RE]{}
\fancyfoot[LE,RO]{}
\fancyfoot[LO,RE]{}
\renewcommand{\headrulewidth}{0pt} % no rule
\renewcommand{\footrulewidth}{0pt}
}
\fancypagestyle{PH10}{% first page of chapters
\fancyhf{} % clear all header and footer fields
\fancyhead{}
\fancyhead[LO,LE]{}
\fancyhead[RO,RE]{Form No: PH10, Page No: \thepage}
\fancyfoot[LE,RO]{}
\fancyfoot[LO,RE]{}
\renewcommand{\headrulewidth}{0.4pt} % no rule
\renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{PH11}{% first page of chapters
\fancyhf{} % clear all header and footer fields
\fancyhead{}
\fancyhead[LO,LE]{}
\fancyhead[RO,RE]{Form No: PH11, Page No: \thepage}
\fancyfoot[LE,RO]{}
\fancyfoot[LO,RE]{}
\renewcommand{\headrulewidth}{0.4pt} % no rule
\renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{PH13}{% first page of chapters
\fancyhf{} % clear all header and footer fields
\fancyhead{}
\fancyhead[LO,LE]{}
\fancyhead[RO,RE]{Form No: PH13, Page No: \thepage}
\fancyfoot[LE,RO]{}
\fancyfoot[LO,RE]{}
\renewcommand{\headrulewidth}{0.4pt} % no rule
\renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{fancyChapter}{% all pages
\fancyhead{}
\fancyhead[LO,LE]{}
\fancyhead[RO,RE]{Chapter \thechapter, Section \thesection, Page No: \thepage}
\fancyfoot{}
\fancyfoot[LE,RO]{}
\fancyfoot[LO,RE]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{fancyAppendix}{% all pages
\fancyhead{}
\fancyhead[LO,LE]{}
\fancyhead[RO,RE]{Appendix \thechapter, Section \thesection, Page No: \thepage}
\fancyfoot{}
\fancyfoot[LE,RO]{}
\fancyfoot[LO,RE]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{fancy}{% all pages
\fancyhead{}
\fancyhead[RO,LE]{Chapter \thechapter}
%\fancyhead[RO,LE]{Chapter \thechapter, \nouppercase{\leftmark}}
\fancyfoot{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{IIT Dhanbad}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}
%\pagestyle{empty}
\setlength{\headheight}{15pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{cover}
\include{Misc_front/cover}
\cleardoublepage
\include{Misc_front/cover2}
\cleardoublepage
\pagenumbering{roman}
\doublespacing
\pagestyle{PH13}
\include{Misc_front/certificate}
\cleardoublepage
\pagestyle{PH11}
\include{Misc_front/declaration}
\cleardoublepage
\pagestyle{PH10}
\include{Misc_front/copyright}
\cleardoublepage
\pagestyle{plain}
\include{Misc_front/abstract}
\cleardoublepage
\addcontentsline{toc}{section}{Acknowledgments}
\include{Misc_front/acknowledgments}
\cleardoublepage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\onehalfspacing
\setstretch{1.5}
\tableofcontents
\cleardoublepage
\addcontentsline{toc}{section}{\listfigurename}
\listoffigures
\cleardoublepage
\addcontentsline{toc}{section}{\listtablename}
\listoftables
\cleardoublepage
\addcontentsline{toc}{section}{List of symbols and abbreviations}
\include{Misc_front/nomenclature}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{Misc_front/dedication}
\cleardoublepage
%%%%%%%%%%%%%Chapters%%%%%%%%%%%%%
\pagestyle{fancyChapter}
\cleardoublepage
%onehalfspacing
\setstretch{1.5}
\pagenumbering{arabic}
\include{Chapter1/introduction}
\cleardoublepage
\include{Chapter2/chap2}
\cleardoublepage
\include{Chapter3/chap3}
\cleardoublepage
\include{Chapter4/chap4}
\cleardoublepage
\include{Chapter6/conclusion}
\pagestyle{plain}
\cleardoublepage
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{ASHbib.bib}
%%%%%%%%%%%%%Appendices%%%%%%%%%%%%%
\pagestyle{fancyAppendix}
\addcontentsline{toc}{chapter}{Appendices}
\appendix
\cleardoublepage
\include{Misc_end/appendix_a}
\newpage
\pagestyle{plain}
\cleardoublepage
\addcontentsline{toc}{chapter}{About Author}
\include{Misc_end/author}
\cleardoublepage
\addcontentsline{toc}{chapter}{Research Achievements}
\include{Misc_end/publications}
\end{document}