\pdfminorversion=7
\documentclass[12pt,twoside]{report}
\input{thesistemplate}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage[nottoc]{tocbibind}
\usepackage{seqsplit}
% it modifies all chapter titles at once
\usepackage{titlesec}
\titleformat{\chapter}[display]{\normalfont\bfseries\filcenter}{\huge\chaptertitlename\ \thechapter}{1ex}{\Huge}
% For quotes
\usepackage[english]{babel}
\usepackage[autostyle, english = american]{csquotes}
\usepackage{float}
\MakeOuterQuote{"}
% remove the box for each link and set the color
\usepackage{xcolor}
\usepackage[protrusion=true,expansion=true]{microtype}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
% add a “List of Abbreviations”
\usepackage[acronym,nonumberlist,toc]{glossaries}
\makeglossaries
% Algorithm environment
\newcommand{\hash}[1]{{\ttfamily\seqsplit{#1}}}
\usepackage{abstract}
\renewcommand{\abstractname}{} % clear the title
\renewcommand{\absnamepos}{empty} % originally center
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
% For tables
\usepackage{booktabs} % For professional-looking lines (\toprule, \midrule, \bottomrule)
\usepackage{amsmath} % For \text in math mode
\usepackage{array} % For fixed-width columns
\usepackage{pdflscape}% For the landscape environment
\usepackage{rotating} % For rotated table headers (\sideways)
\usepackage{longtable} % For tables that span multiple pages
\usepackage{threeparttable}% For table-specific footnotes
\newcommand{\frontchapter}[2][]{%
\cleardoublepage
\phantomsection
\chapter*{#2}%
\if\relax\detokenize{#1}\relax
\addcontentsline{toc}{chapter}{#2}%
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
}
\author{LI Lei}
\supervisor{Prof. SURNAME Name}
\title{Natural Language Explanation for Recommendations and Beyond}
\degree{Doctor of Philosophy}
\date{August 2025}
\begin{document}
\pagestyle{plain}
\pagenumbering{roman}
\Thesistitle
\newpage
\setcounter{page}{1}
\frontchapter[DECLARATION]{DECLARATION}
\input{declaration}
\input{abbreviations}
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{ABSTRACT}
\chapter*{ABSTRACT}
\input{abstract}
\vspace{1cm}
\noindent {\bf Keywords:} Explainable Recommendation, Explainable Artificial Intelligence, Recommender Systems
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{ACKNOWLEDGEMENTS}
\chapter*{ACKNOWLEDGEMENTS}
\input{acknowledgement}
\newpage % Use this part to insert the table of contents
\phantomsection
\addcontentsline{toc}{chapter}{Table of Contents}
\renewcommand*\contentsname{Table of Contents}
\tableofcontents
\newpage % Use this part to insert the list of table.
% \addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\newpage % Use this part to insert the list of figure.
% \addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\newpage % Use this part to insert the list of algorithm.
\addcontentsline{toc}{chapter}{List of Algorithms}
\listofalgorithms
\addtocontents{loa}{\def\string\figurename{Algorithm}}
\printglossary[
type=\acronymtype,
title=List of Abbreviations,
toctitle=List of Abbreviations
]
\thesis % This command is used to set the page number.
\newpage
\chapter{Introduction} \label{ch:intro}
\input{chapter1}
\chapter{Literature Survey} \label{ch:survey}
\input{chapter2}
\chapter{Natural Language Explanation Generation} \label{ch:peter}
\input{chapter3}
\chapter{Conclusion and Future Work} \label{ch:conclude}
\input{chapter4}
\newpage
% \addcontentsline{toc}{chapter}{Bibliography}
\printbibliography[heading=bibintoc, title={Bibliography}]
% \bibliographystyle{plain}
% \bibliography{bibliography}
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{List of Publications}
\input{pub}
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{CURRICULUM VITAE}
\input{cv}
\end{document}