%% ----------------------------------------------------------------
%% Thesis.tex -- MAIN FILE 
%% Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn
%% Revised by Qiang Yang
%% ---------------------------------------------------------------- 

% Set up the document
\documentclass[a4paper, 11pt, twoside]{Thesis} 


%----------packages----------------
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage[ruled,linesnumbered]{algorithm2e}
\usepackage{multirow}
\usepackage{wrapfig}
\graphicspath{{Figures/}} % Location of the graphics files (set up for graphics to be in PDF format)
\usepackage{subfig}
\captionsetup{labelfont=rm,figurename=Figure} %FIGURE->Figure
\captionsetup[subfloat]{labelfont=rm,labelformat=simple} % (A)->(a)
\renewcommand{\thesubfigure}{(\alph{subfigure})} % Fig. 3.3a -> Fig.3.3(a)
\usepackage{gensymb} % \degree
\usepackage{graphbox}
\usepackage{libertine}
\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{float} % To keep figures in place
\hypersetup{urlcolor=black, % url
citecolor=violet, % citation
linkcolor=violet, % table of contents, inner color
colorlinks=true,  
pdfborder = {0 0 0}}  % Colours hyperlinks in blue
% Define enumerated description lists
\usepackage{enumitem}
\usepackage{kantlipsum}
%------------------------------------

%----------new commands--------------
\renewcommand{\bibname}{Reference}
\newcommand{\todo}[1]{\textcolor{red}{TODO: #1}\PackageWarning{TODO:}{#1!}}
\newcommand{\update}[1]{\textcolor{blue}{#1}}
\newcommand{\rev}[1]{\textcolor{red}{#1}} 
\newcommand{\etal}{\textit{et al}.}
\newcommand{\ie}{\textit{i}.\textit{e}.}
\newcommand{\eg}{\textit{e}.\textit{g}.}
\newcommand{\etc}{\textit{etc}.}
\newcommand{\bits}[1]{\texttt{#1}}
\newcommand{\cmd}[1]{\texttt{#1}}
\newcommand{\code}[1]{\texttt{#1}}
\renewcommand\chaptermark[1]{\markboth{\chaptername\ \thechapter. #1}{}}
\renewcommand\sectionmark[1]{\markright{\thesection. #1}}
%--------------------------------------

%-------------control-------------------
\addtolength{\oddsidemargin}{-18pt} % left margin of odd
\addtolength{\evensidemargin}{18pt} % left margin of even
\newcounter{descriptcount}
\newcounter{descriptcount2}
\newlist{enumdescript}{description}{2}
\setlist[enumdescript,1]{%
  before={\setcounter{descriptcount}{0}%
          \renewcommand*\thedescriptcount{\arabic{descriptcount}.}}
  ,font=\bfseries\stepcounter{descriptcount}\thedescriptcount~
}
\setlist[enumdescript,2]{%
  before={\setcounter{descriptcount2}{0}%
          \renewcommand*\thedescriptcount{\roman{descriptcount2}.}}
  ,font=\bfseries\stepcounter{descriptcount2}\thedescriptcount~
}
% reduce the word break between lines
% \tolerance=1
% \emergencystretch=\maxdimen
% \hyphenpenalty=10000
% \hbadness=10000
%---------------------------------------


\makeatother


%% ------------Document begins---------------------------
\begin{document}

%% ---Cover page---------------
% \input{Format/Coverpage}

%%-------title page------------
% For changes in supervisor, degree type, research group, etc. please change the Thesis.cls file

\frontmatter      % Begin the book's numbering; frontpage
%\pagenumbering{arabic}

% Set up the Title Page
\title{Hydrodynamic Cloaking and Illusion Using Active Flow Control}

\authors  {\texorpdfstring
            {\href{mailto:yan-qi.wang@connect.polyu.hk}{WANG YANQI}}
            {Author's Name}
            }
\addresses  {\groupname\\\deptname\\\univname}  % Do not change this here, instead these must be set in the "Thesis.cls" file, please look through it instead
\date       {August 2025}
\subject    {}
\keywords   {}

\maketitle

%% ------------format settings ---------

\setstretch{1.5}  % 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

%% ------------Declaration Page----------
% Declaration Page required for the Thesis, your institution may give you a different text to place here
% \input{Format/Declaration}


%% -------------
% add a empty page
% \pagestyle{empty}
% \vfill\vfill\vfill\vfill\vfill\vfill\null

% \clearpage
%% --------------


%%--------- The Abstract Page---------------------
\addtotoc{Abstract}  % Add the "Abstract" page entry to the Contents
\input{Format/Abstract}
% \clearpage  % Abstract ended, start a new page

%%----------Publication Page----------------------
% \input{Format/Publication}


%-----------The Acknowledgements page-------------
% \input{Format/ACK}
% \clearpage  % End of the Acknowledgements


%% ---------Add Table of Content-------------------

\pagestyle{fancy}  %The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back

\lhead{\emph{Contents}}  % Set the left side page header to "Contents"
\tableofcontents  % Write out the Table of Contents

%% ---------List of Figures and Tables-------------
\lhead{\emph{List of Figures}}  % Set the left side page header to "List if Figures"
\listoffigures  % Write out the List of Figures
\let\cleardoublepage\clearpage % clear the blank page

\lhead{\emph{List of Tables}}  % Set the left side page header to "List of Tables"
\listoftables  % Write out the List of Tables

%% ---------Abbreviations-----------------------------
\setstretch{1.5}  % Set the line spacing to 1.5, this makes the following tables easier to read
% \clearpage  % Start a new page
% \lhead{\emph{Abbreviations}}  % Set the left side page header to "Abbreviations"
% \listofsymbols{ll}  % Include a list of Abbreviations (a table of two columns)
% {
% \textbf{Acronym} & \textbf{W}hat (it) \textbf{S}tands \textbf{F}or \\
% % Abbreviations go here
% }



%% ---------Text format--------------------------------
\mainmatter	  % Begin normal, numeric (1,2,3...) page numbering
\pagestyle{fancy}  % Return the page headers back to the "fancy" style
\fancyhf{}
\fancyhead[OL]{\rightmark}
\fancyhead[OR]{\thepage}
\fancyhead[EL]{\thepage}
\fancyhead[ER]{\leftmark}


%%---------Thesis text----------------------------------

\input{Chapters/1.Introduction} 
\input{Chapters/2.ProblemDescription}
\input{Chapters/3.Methodology}
\input{Chapters/4.Result}
\input{Chapters/5.Conclusion&FutureWork}

\addtocontents{toc}{\vspace{2em}}  % Add a gap in the Contents, for aesthetics
\backmatter % End the book's numbering; backpage

%% --------Reference-------------------------------------
\label{Bibliography}
\fancyhf{}
\fancyhead[OL]{\emph{References}}
\fancyhead[OR]{\thepage}
\fancyhead[EL]{\thepage}
\fancyhead[ER]{\emph{References}}

% Reference style
% \bibliographystyle{ACM-Reference-Format}
\bibliographystyle{acm}
\bibliography{mybibfile}  

\end{document}  % The End
%% ----------------------------------------------------------------