\documentclass[12pt]{style}  % default square logo 
% \documentclass[12pt,beltcrest]{style} % use old belt crest logo
%\documentclass[12pt,shieldcrest]{style} % use older shield crest logo

%load any additional packages
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{nameref,hyperref}
\usepackage{booktabs,xfrac}
\usepackage{lmodern}
\usepackage[ruled]{algorithm}
\usepackage[noEnd=false, endLComment=]{algpseudocodex}
% Tells algorithmicx not to print an empty line if `noend' is set 
\usepackage{multicol}
\usepackage{pifont}
\usepackage{natbib}
\usepackage{enumitem}
\newcommand{\cmark}{\ding{51}}
\newcommand{\xmark}{\ding{55}}
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator*{\argmin}{argmin}
\newcommand{\KL}{D_\mathrm{KL}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\bfx}{\mathbf{x}}
\newcommand{\bfy}{\mathbf{y}}
\newcommand{\bfz}{\mathbf{z}}
\newcommand{\bfp}{\mathbf{p}}
\newcommand{\bfg}{\mathbf{g}}
\newcommand{\bfu}{\mathbf{u}}
\newcommand{\bfv}{\mathbf{v}}
\newcommand{\bfW}{\mathbf{W}}
\newcommand{\bfS}{\mathbf{S}}
\newcommand{\bfQ}{\mathbf{Q}}
\newcommand{\bfA}{\mathbf{A}}
\newcommand{\bfK}{\mathbf{K}}
\newcommand{\bfI}{\mathbf{I}}
\newcommand{\bfB}{\mathbf{B}}
\newcommand{\bfC}{\mathbf{C}}
\newcommand{\bfM}{\mathbf{M}}
\newcommand{\bfF}{\mathbf{F}}
\newcommand{\bfV}{\mathbf{V}}
\newcommand{\bfP}{\mathbf{P}}
\newcommand{\bfG}{\mathbf{G}}
\newcommand{\bfX}{\mathbf{X}}
\newcommand{\bfL}{\mathbf{L}}
\newcommand{\tn}{\textnormal}
\newcommand{\Wr}{\bfW_\tn{r}}
\newcommand{\Win}{\bfW_\tn{in}}
\newcommand{\Wout}{\bfW_\tn{out}}
\newcommand{\WrRNN}{\bfW^{\tn{RNN}}_\tn{r}}
\newcommand{\WrtPCN}{\bfW^{\tn{tPCN}}_\tn{r}}
\newcommand{\WinRNN}{\bfW^{\tn{RNN}}_\tn{in}}
\newcommand{\WintPCN}{\bfW^{\tn{tPCN}}_\tn{in}}
\newcommand{\WoutRNN}{\bfW^{\tn{RNN}}_\tn{out}}
\newcommand{\WouttPCN}{\bfW^{\tn{tPCN}}_\tn{out}}
\newcommand{\bm}{\boldsymbol}
\newtheorem{theorem}{Theorem}
\newcommand{\Tr}{\textnormal{Tr}}
\newcommand{\blambda}{\boldsymbol{\lambda}}
\newcommand{\tdiag}{\textnormal{diag}}
\newcommand{\tdiagMat}{\textnormal{diagMat}}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\simi}{sim}
\DeclareMathOperator{\sep}{sep}
\DeclareMathOperator{\softmax}{softmax}

% git credential: olp_23Oz3YXC30JixCGP7AAmHoZTXZQk4p4DM100
%input macros (i.e. write your own macros file called mymacros.tex 
%and uncomment the next line)
%\include{mymacros}

\title{Extending Predictive Coding: Space, Time and Memory}   %note \\[1ex] is a line break in the title

% extending pc: time, spce and memory

% 150 pages

\author{Mufeng Tang}             %your name
\college{St Cross College}  %your college

%\renewcommand{\submittedtext}{change the default text here if needed}
\degree{Doctor of Philosophy}     %the degree
\degreedate{Trinity 2025}         %the degree date

%end the preamble and start the document
\begin{document}

%this baselineskip gives sufficient line spacing for an examiner to easily
%markup the thesis with comments
\baselineskip=18pt plus1pt

%set the number of sectioning levels that get number and appear in the contents
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}


\maketitle                  % create a title page from the preamble info
\begin{romanpages} 
\include{acknowledgements}  % include an acknowledgements.tex file
\include{publications}
\include{abstract}          % include the abstract
\tableofcontents            % generate and include a table of contents
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures              % generate and include a list of figures
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Notation Conventions}
\include{notations}
\end{romanpages}            % end roman page numbering

%now include the files of latex for each of the chapters etc
\include{chapter-intro}
\include{chapter-am}
\include{chapter-time}
\include{chapter-seqmem}
\include{chapter-grid}
\include{chapter-discussion}

%now enable appendix numbering format and include any appendices
\appendix
\include{appendix1}
\include{appendix2}
\include{appendix3}
\include{appendix4}

%next line adds the Bibliography to the contents page
\addcontentsline{toc}{chapter}{Bibliography}
%uncomment next line to change bibliography name to references
%\renewcommand{\bibname}{References}
\bibliography{refs}        %use a bibtex bibliography file refs.bib
\bibliographystyle{apalike}  %use the plain bibliography style

\end{document}
