% for details https://github.com/alwynmathew/phd-thesis-cseiitp
%% PLEASE READ THE COMMENTS BEFORE DOING ANYTHING 
\documentclass[11pt, a4paper]{book} % Font size=12, a4 paper, both-side printing, and in a book format
\usepackage[intlimits]{amsmath}%
\usepackage{amsthm}
\usepackage{caption3}
\usepackage{graphicx}
\usepackage{latexsym}
\usepackage{thesis}
\usepackage{rotating}
\usepackage{wrapfig}  % for biography photo
% \usepackage{pstricks} % for table shading https://tex.stackexchange.com/a/68871/136315
\usepackage{colortab} % for table shading
%\usepackage[algoruled, algochapter, linesnumbered]{algorithm2e} % for algorithm writing
%\usepackage{indentfirst}  % for indent the first paragraph of any chapter
%\usepackage{makeidx}      % for making index at last in the thesis
%\makeindex                % for making index at last in the thesis
\allowdisplaybreaks[1]
\usepackage{gensymb}
\usepackage{amssymb}
\usepackage{tabularx}
\usepackage{blindtext}
\usepackage{amstext}
\usepackage{epstopdf}
\usepackage{dcolumn}
\usepackage{array,multirow}
\usepackage{tikz}
\usepackage{titlesec}
\titlespacing*{\subsection}
{0pt}{0.6\baselineskip}{0.6\baselineskip}
\titlespacing*{\section}
{0pt}{0.75\baselineskip}{0.75\baselineskip}
\titlespacing*{\subsubsection}
{0pt}{0.5\baselineskip}{0.5\baselineskip}
%\newtheorem{theorem}{Theorem}
%\newtheorem{condition}{Condition}
%\usepackage{sectsty}
%\chapterfont{\centering}
%\chaptertitlefont{\centering}
%\usepackage{titlesec}
%\titleformat{\chapter}[display]
%  {\normalfont\bfseries\LARGE}
%  {\chaptertitlename~\thechapter}{1pc}
%  {{\color{brown}\titlerule[2pt]}\vspace{1pc}\MakeUppercase}
%\titleformat{name=\chapter,numberless}[display]
%  {\normalfont\bfseries\LARGE}{}{1pc}
%  {\MakeUppercase}
% \usepackage{caption}
% \usepackage{subcaption}
  
% Uncomment the following block and comment the next block (both starting with '\usepackage[dvips...') when you need for final printout. However to submit the softcopy of the thesis comment the first block and uncomment the next block.
%%-------------------- 1st Block ----------------------------
%\usepackage[dvips,
%                 bookmarks,
%                 bookmarksopen=true,
%                 bookmarksnumbered=true,
%                 breaklinks=true,
%                 linktocpage,
%                 backref,
%                 colorlinks=true,
%                 linkcolor=black,
%                 urlcolor=black,
%                 citecolor=black,
%                 anchorcolor=black,
%                 hyperindex=true,
%                 hyperfigures
%                 ]{hyperref} % added by Sandipan
%
%\usepackage{backrefx}% added by Sandipan
%-------------------- 1st Block Ends-------------------------
%-------------------- 2nd Block -----------------------------
%\usepackage[dvips]{hyperref} % for link boxes
%\usepackage[dvipdfmx]{hyperref} % for dvi to pdf conversion
%\usepackage[driverfallback=dvipdfm]{hyperref}
\usepackage[pdftex]{hyperref}
\hypersetup{
             bookmarks,
             bookmarksopen=true,
             bookmarksnumbered=true,
             breaklinks=true,
             linktocpage,
             backref,
             colorlinks=false, % false: boxed links; true: colored links
             linkcolor=red,    % color of internal links
             citecolor=green,  % color of links to bibliography
             urlcolor=cyan,    % color of external links
             hyperindex=true,
             anchorcolor=blue,
             hyperfigures
}
%\usepackage{backrefx} % for citing the section/page_no of each reference in Bibliography
%\usepackage[all]{hypcap} % for showing the figure as well as its caption.
%%--------------------2nd Block Ends--------------------------
\setcaptionwidth{0.9\textwidth} % For caption width 'Caution: Don't Change otherwise you'll be in trouble to control the figure/Table captions.
%\usepackage[linewidth=1pt]{mdframed}
\usepackage{minibox}
%\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{enumitem}
\usepackage{arydshln}
\usepackage{multirow}
\usepackage{calc}
\usepackage{verbatim}
\usepackage{bbding}
\usepackage{bbm}
\usepackage{soul}
\usepackage{dsfont}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage[caption=false]{subfig}
%\usepackage[ruled]{algorithm2e}
\usepackage{algorithm} 
%\usepackage{algorithmic}  
%\usepackage[algo2e]{algorithm2e}
%\usepackage[latin1]{inputenc}
%\newtheorem{theorem}{Theorem}
\newcommand{\cmt}[1]{ }
\usepackage{lipsum}
\newcommand{\thesistitle}{Thesis Title}
\newcommand{\authorname}{My Name}
\newcommand{\authorrollno}{XX21CSXX}
\newcommand{\supervisorname}{Dr. X}
\begin{document}
% ------------ Starting of Preamble Pages---------------------
%\pagenumbering{none}
%\include{HeadTail/coverpage}
%\cleardoublepage
\setcounter{page}{1}
\pagenumbering{roman}
	
\include{HeadTail/title}
\cleardoublepage
\include{HeadTail/dedication}
\cleardoublepage
\addcontentsline{toc}{chapter}{Certificate of Approval} 
\include{HeadTail/Certificate_of_approval_DC} 
% After the viva-voce, change the file name to 'Certificate_of_approval.tex'
\cleardoublepage
\addcontentsline{toc}{chapter}{Declaration}
\include{HeadTail/Declaration}
\cleardoublepage
\addcontentsline{toc}{chapter}{Certificate}
\include{HeadTail/cert}
\cleardoublepage
\addcontentsline{toc}{chapter}{Acknowledgement}
\include{HeadTail/ack}
\cleardoublepage
%%%%%%%%%%%%%%%% LIST OF ABBREVIATIONS %%%%%%%%%%%%%%%%%%
%	\addcontentsline{toc}{chapter}{List of Abbreviations}
%	\markboth{List of Abbreviations}{List of Abbreviations}
%	\include{Symbol/abbreviation}
%	\clearpage{\pagestyle{empty}\cleardoublepage}
%%%%%%%%%%%%%%%%%% LIST OF SYMBOLS %%%%%%%%%%%%%%%%%%%%%
%    \addcontentsline{toc}{chapter}{List of Symbols}
%	\markboth{List of Symbols}{List of Symbols}
%	\include{Symbol/listofsymbol}
%	\clearpage{\pagestyle{empty}\cleardoublepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addcontentsline{toc}{chapter}{Abstract}
\include{HeadTail/abstract}
	
%\addcontentsline{toc}{chapter}{List of Publications}
%\include{HeadTail/publication}
\renewcommand{\headrulewidth}{0.30pt}    % Width of head rule
%%%%%%%%%%%%%%%%%% LIST OF SYMBOLS %%%%%%%%%%%%%%%%%%%%%
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
%\cleardoublepage
\clearpage{\pagestyle{empty}\cleardoublepage}
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
%\cleardoublepage
\clearpage{\pagestyle{empty}\cleardoublepage}
\addcontentsline{toc}{chapter}{List of Symbols}
\markboth{List of Symbols}{List of Symbols}
\include{Symbol/listofsymbol}
\clearpage{\pagestyle{empty}\cleardoublepage}
\addcontentsline{toc}{chapter}{List of Abbreviations}
\markboth{List of Abbreviations}{List of Abbreviations}
\include{Symbol/abbreviation}
\clearpage{\pagestyle{empty}\cleardoublepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\cleardoublepage
%%%------------- End of the Preamble Pages----------------------------
%%%------------- Starting of the Actual Thesis -----------------------
    \renewcommand{\headrulewidth}{0.30pt} 
	\setcounter{page}{1}
	\pagenumbering{arabic}
\begin{spacing}{1.4}
\include{Chapter1/chapter1} 
%\include{Chapter2/chapter2} % new chapters 
%\include{Chapter3/chapter3} 
%\include{Chapter4/chapter4}
\end{spacing}
%%% Note that if you want to add more chapters, which might be needed for showing another/more contributory chapters, make a copy of any folder of Chapter2/3 and rename it and include before including the conclusion.
% \renewcommand{\chaptername}{Chapter} %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%    \addcontentsline{toc}{chapter}{Index} % added by Sandipan for registering 'Index' in the table of contents
%    \clearpage{\pagestyle{empty}\cleardoublepage}
%    \printindex       % added by Sandipan for printing the index
%    \renewcommand{\chaptername}{Chapter}
\cmt{
\renewcommand{\chaptername}{Appendix} %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{spacing}{1}
\begin{appendix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% APPENDIX %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{Appendix/Appen1} 
%\include{Appendix/Appen2} 
%\include{Appendix/Appen3}
% Atention!!! Include other appendixes if using this by copying  Appen1.tex file in the 'Appendix' folder before changing it.
\clearpage{\pagestyle{empty}\cleardoublepage} 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{appendix}
\end{spacing}
}
\include{References/references}
%\clearpage{\pagestyle{empty}\cleardoublepage}
%\renewcommand{\chaptername}{Chapter}
%\include{References/references}
%\addcontentsline{toc}{chapter}{References}
%\chapter*{References}
%\chaptermark{References}
%%%%%%%%%\cmt{    
\clearpage{\pagestyle{empty}\cleardoublepage}
\addcontentsline{toc}{chapter}{List of Publications}
\include{HeadTail/publication}
\clearpage{\pagestyle{empty}\cleardoublepage}
%%%%%%%%%%%%%%%%%}
%\begin{spacing}{1.25}
%\addcontentsline{toc}{chapter}{Author's Biography}
%\include{HeadTail/biodata}
%\clearpage{\pagestyle{empty}\cleardoublepage}
%\end{spacing}
\end{document}