% Indian Institute of Technology Bhubaneswar Dissertation Template
%
% Please read the comments in this file and make appropriate edits.
% NOTE: Always refer to the ``Preparation and Submission Manual for
% Doctoral Dissertations and Masters Theses for 20**'', where 20** is
% the year of your graduation, for official preparations guidelines.
%
\documentclass[11pt,a4paper,twoside,openright]{report}
%%%%%%% Import packages %%%%%%%
% \usepackage{showframe} % makes the page borders visible, conflicts with xcolor
% \usepackage{import}
\usepackage{amsfonts,amsmath,amssymb,caption,enumerate,float,graphicx,setspace}
\usepackage{epsfig}
\usepackage{siunitx}
\usepackage{lipsum,blindtext} % just to generate text for the example
\usepackage{fancyhdr}
\graphicspath{{figures/}}
\usepackage{url,array,csquotes,multirow,tabularx}
% \usepackage{bbm}
% \usepackage{eufrak}
% \usepackage{marvosym}
% \usepackage{moderncvcompatibility}
% Packages for floats like figures and tables
% \usepackage{longtable}
% \usepackage{relsize}
% \usepackage[chapter]{algorithm}
% \usepackage{algorithmic}
% \usepackage{algpseudocode}
% \usepackage{bigints}
%% packages with settings
\usepackage{subcaption} % conflicts with package subfig
\renewcommand\thesubfigure{\alph{subfigure}}
% \usepackage[base]{babel}
% \usepackage[inline]{enumitem} % Inline listing package
\usepackage[usenames,dvipsnames]{xcolor} % May be necessary if you want to color links
% Page geometry
\usepackage{geometry}
\setlength{\evensidemargin}{0.0cm}
\setlength{\oddsidemargin}{1.27cm}
\setlength{\topmargin}{-1.27cm}
\setlength{\headheight}{32pt}
\setlength{\headsep}{1em} %% Setting for gap in header and main body%%
\setlength{\textheight}{24cm}
%\setlength{\textwidth}{14.65cm}
\setlength{\footskip}{1.5cm}
\setlength{\parindent}{1.5em}
\setlength{\parskip}{1em}
% Set line spacing to 1.25 because
% with 12pt font, 1.5 spacing is too large
\setstretch{1.25}
% Packages and settings for chapter heading
\usepackage[times]{quotchap}
\renewcommand{\chapterheadstartvskip}{\vspace*{-2cm}}
\renewcommand*\sectfont{\bfseries}
% Packages and settings for table of contents
\usepackage[nottoc]{tocbibind}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\makeatletter
\newlength{\@chapterlength} % Original Magic Value - RMR
\setlength{\@chapterlength}{1.5em} % This code adds space for \@chapapp for toc entries
\newcommand\@chapterheadsmark{1}
\ifnum \@chapterheadsmark = 1
\settowidth{\@chapterlength}{\@chapapp}
\addtolength{\@chapterlength}{3.8em} % Space between toc labels and values
\fi
% \def\l@chapter{\pagebreak[3]\vskip 1em plus 1pt \@dottedtocline{0}{0em}{1.5em}}
% \def\l@chapter{\pagebreak[3]\vskip 1em plus 1pt \@dottedtocline{0}{0em}{\@chapterlength}}
\def\l@section{\@dottedtocline{1}{\@chapterlength}{2.3em}}
\newlength{\@subsectionlength}
\setlength{\@subsectionlength}{\@chapterlength}
\addtolength{\@subsectionlength}{2.3em}
\def\l@subsection{\@dottedtocline{2}{\@subsectionlength}{3.2em}}
\newlength{\@subsubsectionlength}
\setlength{\@subsubsectionlength}{\@chapterlength}
\addtolength{\@subsubsectionlength}{5.5em}
\def\l@subsubsection{\@dottedtocline{3}{\@subsubsectionlength}{0em}}
%% Uncomment the following lines if you are adding paragraphs
%% to TOC by setting "tocdepth" to 4
% \newlength{\@paragraphlength}
% \setlength{\@paragraphlength}{\@chapterlength}
% \addtolength{\@paragraphlength}{8.5em}
% \def\l@paragraph{\@dottedtocline{4}{\@paragraphlength}{0em}}
%% Uncomment the following lines if you are adding
%% subparagraphs to TOC by setting "tocdepth" to 5
% \newlength{\@subparagraphlength}
% \setlength{\@subparagraphlength}{\@chapterlength}
% \addtolength{\@subparagraphlength}{10.5em}
% \def\l@subparagraph{\@dottedtocline{5}{\@subparagraph}{0em}}
\makeatother
%% Comment the following lines if you do not want to add
%% "Chapter" before chapter number in TOC using "tocloft"
\renewcommand\cftchappresnum{\chaptername~}
\newlength\mylength
\settowidth\mylength{\cftchappresnum\cftchapaftersnum\qquad}
\addtolength\cftchapnumwidth{\mylength}
\usepackage[acronym,nomain,toc]{glossaries}
\makeglossaries
\usepackage[intoc]{nomencl}
\makenomenclature
\renewcommand{\nomname}{List of Symbols}
\usepackage[toc,page]{appendix}
\usepackage{datetime}
\newdateformat{thisdate}{%
\twodigit{\THEDAY}}
\newdateformat{thismonthdigit}{%
\twodigit{\THEMONTH}}
\newdateformat{thismonth}{%
\monthname[\THEMONTH]}
\newdateformat{thisyear}{%
\THEYEAR}
%% Keywords command
\providecommand{\keywords}[1]
{
\large
\textbf{\textit{Keywords---}} #1
}
%% Packages and settings for bibliography
% \usepackage{cite}
% \usepackage{notoccite}
%% To use other bibliography styles with biblatex, visit:
%% https://www.overleaf.com/learn/latex/Biblatex_bibliography_styles
%% https://ctan.org/search?phrase=biblatex+styles
\usepackage[backend=biber, sorting=none, %
defernumbers=true, style=nature, doi=true]{biblatex}
\addbibresource{bibliography.bib}
% Hyperref should be the last package to be loaded
\usepackage{hyperref}
% \hypersetup{
% breaklinks=true,
% colorlinks=true, % set true if you want colored links
% linktoc=all, % set to all if you want both sections and subsections linked
% linkcolor=black, % choose some color if you want links to stand out
% citecolor=black,
% urlcolor=black
% }
\hypersetup{linktoc=all, colorlinks=true, linkcolor=blue, citecolor=teal, urlcolor=red}
\DeclareMathOperator{\arccot}{arccot}
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator*{\argmin}{arg\;min}
\DeclareMathOperator*{\argmax}{arg\;max}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{proposition}{Proposition}[chapter]
\newtheorem{lemma}{Lemma}[chapter]
\newtheorem{definition}{Definition}[chapter]
\newtheorem{prop}{Proposition}
%-------------------------------------------------------------------
%\flushbottom
%--------------------------------------------------------------------------
\raggedbottom % (Remove Unnecessary space b/w paragraphs)
%--------------------------------------------------------------------------
\begin{document}
% --------- Title and abstract etc in the front matter ----------- %
\pagenumbering{gobble}
\input{00_Cover/cover_page}
%%%%%%%%%%%% Front Matter %%%%%%%%%%%%
\pagenumbering{roman}
\include{01_Dedication/Dedication}
\include{02_Approval/Approval}
\include{03_Certificate/Certificate}
\include{04_Declaration/Declaration}
\include{05_Acknowledgement/Acknowledgment}
%%%%%%%%%%%% Abstract %%%%%%%%%%%%
\setstretch{2} % double spacing
\let\cleardoublepage\clearpage % Removes blank page automatically added after each chapter
\input{06_Abstract/Abstract}
%%%%%% List of Abbreviations %%%%%%
\input{07_Abbreviations/Abbreviations}
%%%%%% List of Symbols %%%%%%
\input{08_Symbols/symbols}
%%%%%% Table of Contents %%%%%%
%%%%%%% To create 1.5 spacing in contents
\setstretch{1.5}
\input{09_Contents/Contents}
\pagenumbering{arabic}
%%%%%%%% To create double spacing in chapters
\setstretch{2}
% Fancy header
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markright{\thesection~#1}{}}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter~-~#1}{}}
\fancyhf{}
\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}
\fancyhead[LE,RO]{\thepage}
%%%%%% Chapters %%%%%%
%% Remove any command starting with "\lipsum"
%% from the chapter text. They are used to generate
%% junk test paragraphs
\input{10_Chapter_1/Introduction}
\clearpage
%\newpage\null\newpage
\input{20_Chapter_2/Literature_review}
\clearpage
%\newpage\null\newpage
\input{30_Chapter_3/chapter_3}
\clearpage
%\newpage\null\newpage
\input{40_Chapter_4/chapter_4}
\clearpage
%\newpage\null\newpage
\input{50_Chapter_5/chapter_5}
\clearpage
%\newpage\null\newpage
\input{60_Conclusion/Conclusion}
\clearpage
%%%%%% Appendices %%%%%%
\appendix
%% Comment the following lines if you do not want to add
%% "Appendix" before appendix number in TOC
\renewcommand{\chaptername}{Appendix}
\addtocontents{toc}{\protect\renewcommand{\protect\cftchappresnum}{\chaptername~}}
\input{100_Appendices/appendix_0}
\input{100_Appendices/appendix_1}
\newpage
% \null\newpage
\setstretch{1}
%%%%%% Publications %%%%%%
\input{110_Publications/Publications}
\clearpage
%%%%%% Bibliography %%%%%%
\renewcommand{\bibname}{References}
\printbibliography[heading=bibintoc]
% Comment the following line if you don't want to print
% all the citations in the bibliography file
\nocite{*}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RE]{\bfseries \bibname}
\fancyhead[LO]{\bfseries \bibname}
\fancyhead[LE,RO]{\thepage}
\end{document}