 %=====================================main thesis============================

\include{frontmatter/Preamble}
\setstretch{1.5}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries\centering}{\centering\chaptertitlename\ \thechapter}{30pt}{\Huge}
\titlespacing*{\chapter}
{10pt}{60pt}{50pt}

\begin{document}
\raggedbottom
\include{frontmatter/title}	
\pagenumbering{roman}

\setlength{\cftbeforechapskip}{15pt}

\setcounter{tocdepth}{2}

\renewcommand{\cfttoctitlefont}{\Huge\bfseries}
\renewcommand\cftaftertoctitle{\vskip2mm\rule{150mm}{2pt}}

\renewcommand{\cftlottitlefont}{\hfil\Huge\bfseries}
\renewcommand{\cftafterlottitle}{\vskip2mm\rule{150mm}{2pt}}


\renewcommand{\cftloftitlefont}{\hfil\Huge\bfseries}
\renewcommand{\cftafterloftitle}{\vskip2mm\rule{150mm}{2pt}}
\tableofcontents


%==========================Front matter===========================
\input{frontmatter/Declaration}
\input{frontmatter/Acknowledgment}
\input{frontmatter/Abstract}
\clearpage
\listoftables
\clearpage
\listoffigures

%==========================chapters/main matter===================
\clearpage
\pagenumbering{arabic}

\fancyfoot[CE,CO]{\thepage}
\fancyhead[RE]{\it{\nouppercase{\leftmark}}}
\fancyhead[LO]{\it{\nouppercase{\rightmark}}}

\input{mainmatter/Chapter 1}
\input{mainmatter/Chapter 2}
\input{mainmatter/Chapter 3}
\input{mainmatter/Chapter 4}
\input{mainmatter/Chapter 5}
\input{mainmatter/Chapter 6}
%=============================back matter=========================
 
\bibliographystyle{ieeetr}
\bibliography{mybib,pres,UltrasoundBladder,Reviewpapers,flowmeasurement,HW_COMPcircuit_Ref}
\appendixtitletocon
\end{document}