\documentclass[a4paper, 12pt, doubleside, openright]{Thesis}
%\usepackage[square, numbers, comma, sort&compress]{natbib}
                                                    % Use the "Natbib" style for the references in the Bibliography
\usepackage{verbatim}                               % Needed for the "comment" environment to make LaTeX comments
\usepackage{vector}                                 % Allows "\bvec{}" and "\buvec{}" for "blackboard" style bold vectors in maths
\usepackage{makeidx}                                % To make Index at the end
\usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
\usepackage[autostyle]{csquotes}
\makeindex
\usepackage{algorithmicx}
\usepackage[ruled]{algorithm}
\usepackage{pseudocode}
\usepackage{algpseudocode}
\usepackage{lmodern}
\usepackage{apacite}
\usepackage{longtable}

\renewcommand{\figurename}{Fig.}
\begin{document}
\frontmatter	                       % Begin Roman style (i, ii, iii, iv...) page numbering

%% =====================================================================================================================================
%%          TITLE PAGE
%% =====================================================================================================================================
\title      {IMPROVED METAHEURISTICS FOR ROUTING IN WIRELESS SENSOR NETWORKS}
\topic      {\textbf{Improved Metaheuristics for Routing in Wireless Sensor Networks}}
\authoremail{\texorpdfstring{\href{psmaan@hotmail.com}{Palvinder Singh Mann}}{Palvinder Singh Mann}}
\student    {\textbf{Palvinder Singh Mann}}
\date       {\monthyear}
\subject    {Ph.D. Thesis}
\keywords   {Type-2 Fuzzy Logic Systems, Particle Swarm Optimization, Generalized Fuzzy System Toolbox, Nature Inspired Toolbox}

\setstretch{1}
\maketitle   % Disable this title in final print and Use TITLE PAGES from ./FrontMatter Folder
\cleardoublepage
%% -------------------------------------------------------------------------------------------------------------------------------------
%%          FANCY HEADERS - ACKNOLEDGEMENT, ABSTRACT, PUBLICATIONS
%% -------------------------------------------------------------------------------------------------------------------------------------
\setstretch{1.3}                                    % It is better to have smaller font and larger line spacing than the other way round
                                                    % Define the page headers using the FancyHdr package and set up for one-sided printing
\fancyhead{}                                        % Clears all page headers and footers
\rhead{\thepage}                                    % Sets the right side header to show the page number
\lhead{}                                            % Clears the left side page header
\pagestyle{fancy}                                   % Finally, use the "fancy" page style to implement the FancyHdr headers
%% -------------------------------------------------------------------------------------------------------------------------------------

%% -------------------------------------------------------------------------------------------------------------------------------------
%%          FANCY HEADERS - CONTENTS, LIST OF FIGURES, TABLES, ABBREVIATIONS, NOTATIONS,
%%                          CHAPTERS, APPENDICES, REFERENCES AND INDEX
%% -------------------------------------------------------------------------------------------------------------------------------------
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\pagestyle{fancy}



\addtotoc{Declaration}                              % Add the "Index" page entry to the Contents
\input{./FrontMatter/Declaration}                   % Author's Declaration
\cleardoublepage

\addtotoc{Certificate}                              % Add the "Index" page entry to the Contents
\input{./FrontMatter/Certificate}                   % Author's Declaration
\cleardoublepage


\addtotoc{Abstract}                                 % Add the "Index" page entry to the Contents
\setstretch{1.5}                                    % Set the line spacing to 1.5, this makes the following tables easier to read
\input{./FrontMatter/Abstract}                      % Thesis Abstract
\cleardoublepage


\Quote{\addtocontents{toc}{\vspace{1em}}            % Add a gap in the Contents, for aesthetics
\input{./FrontMatter/Quote}}                        % Impressive Quote
\cleardoublepage


\Dedication{\addtocontents{toc}{\vspace{1em}}       % Add a gap in the Contents, for aesthetics
\input{./FrontMatter/Dedication}}                   % Author's Dedication
\cleardoublepage

\addtotoc{Acknowledgements}                         % Add the "Index" page entry to the Contents
\input{./FrontMatter/Acknowledgement}               % Acknowledgement
\cleardoublepage


\addtotoc{Contents}                          % Add the "Abstract" page entry to the Contents
\tableofcontents                                    % Write out the Table of Contents
\clearpage                                     % Declaration ended, now start a new page



\listoffigures                                      % Write out the List of Figures
\clearpage                                          % Declaration ended, now start a new page

\listoftables                                       % Write out the List of Tables
\clearpage                                          % Start a new page


\addtotoc{List of Thesis Outcomes}                    % Add the "Index" page entry to the Contents
\input{./FrontMatter/Publications}                  % List of Publication
\clearpage                                          % Declaration ended, now start a new page


\addtotoc{Abbreviations}                            % Add the "Abstract" page entry to the Contents
\input{./FrontMatter/Abbreviations}                 % List of Abbreviations
\clearpage                                          % Declaration ended, now start a new page


%\addtotoc{Notations}                                % Include a list of Abbreviations (a table of two columns)
%\input{./FrontMatter/Notations}                     % List of Abbreviations
%\clearpage                                          % Declaration ended, now start a new page



%% =====================================================================================================================================
%%          THESIS CHAPTERS
%% =====================================================================================================================================
\setstretch{1.5}                                    % Reset the line-spacing to 1.3 for body text (if it has changed)
\mainmatter	                                        % Begin normal, numeric (1,2,3...) page numbering
%% --------------------------------------------------------------------------------------------------------------------------------
\input{./Chapter1/Chapter1}                         % Introduction
%% --------------------------------------------------------------------------------------------------------------------------------
\input{./Chapter2/Chapter2}                         % Literature Review
%% --------------------------------------------------------------------------------------------------------------------------------
\input{./Chapter3/Chapter3}
%% --------------------------------------------------------------------------------------------------------------------------------
\input{./Chapter4/Chapter4}                         % Nature Inspired Toolbox
%% --------------------------------------------------------------------------------------------------------------------------------
\input{./Chapter5/Chapter5}                         % Frameworks for PSO models for Type-1 and Type-2 Fuzzy Modeling
%% --------------------------------------------------------------------------------------------------------------------------------
\input{./Chapter6/Chapter6}                         % T1 Vs IT2 FLSs for Time Series Forecasting
%% --------------------------------------------------------------------------------------------------------------------------------
%\input{./Chapter7/Chapter7}                         % A Miscellany of FLS Design Applications
%% --------------------------------------------------------------------------------------------------------------------------------
%\input{./Chapter8/Chapter8}                         % Conclusion and Future Research Scope
%% --------------------------------------------------------------------------------------------------------------------------------
%\input{./Chapter9/Chapter9}                      % Primers
%% --------------------------------------------------------------------------------------------------------------------------------
\input{./Chapter0/Chapter0}                      % General Instructions
%% --------------------------------------------------------------------------------------------------------------------------------

%\addtocontents{toc}{\vspace{2em}}                   % Add a gap in the Contents, for aesthetics
%\clearpage





\appendix
\addtotoc{APPENDICES}
\input{./Appendices/AppendixA}
%\input{./Appendices/AppendixB}
\input{./Appendices/AppendixC}




%\addtocontents{toc}{\vspace{2em}}              % Add a gap in the Contents, for aesthetics
\backmatter
%\clearpage
\bibliographystyle{apacite}
\bibliography{Ref}

%\vspace*{0.01in}
\begin{center}
* * * * *
\end{center}
\cleardoublepage


\input{./BackMatter/Resume}
\cleardoublepage



\end{document} 