From 974dc17e890fa0ea09fa604564b8a6f87c28ad5a Mon Sep 17 00:00:00 2001
From: prescientmoon <git@moonythm.dev>
Date: Thu, 20 Mar 2025 14:38:38 +0100
Subject: [PATCH] Move prerequisites out + custom headline

---
 isospectral.tex   |  2 +-
 main.tex          | 36 +++++++++++-------------------------
 prerequisites.tex | 21 +++++++++++++++++++++
 3 files changed, 33 insertions(+), 26 deletions(-)
 create mode 100644 prerequisites.tex

diff --git a/isospectral.tex b/isospectral.tex
index cf10dcb..1d705e2 100644
--- a/isospectral.tex
+++ b/isospectral.tex
@@ -1,4 +1,4 @@
-\section{ The spectral geometry of hyperbolic and spherical spaces}
+\section{The spectral geometry of hyperbolic and spherical spaces}
 \begin{frame}{The Laplace-Beltrami operator}
 	\begin{enumerate}
 		\begin{definition}[Laplace-Beltrami operator]
diff --git a/main.tex b/main.tex
index a5aa82c..c6c39cd 100644
--- a/main.tex
+++ b/main.tex
@@ -45,11 +45,19 @@ code-for-last-col = \color{blue}
 \DeclareMathOperator{\cl}{cl}
 \DeclareMathOperator{\rank}{r}
 
+% Define custom headline
+\setbeamertemplate{headline}{%
+  \leavevmode%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.5ex]{section in head/foot}%
+    \hspace{.5em}\strut\insertsectionhead\hfill\mbox{}%
+  \end{beamercolorbox}%
+}
 \begin{document}
 
+
 \maketitle
 
-\section{Introduction \& preliminaries}
+\section{Introduction}
 
 \begin{frame}{Outline}
 	%Should we make an outline?
@@ -71,29 +79,7 @@ code-for-last-col = \color{blue}
 
 \end{frame}
 
-\begin{frame}{Introduction}
-
-
-	\begin{figure}[H]
-		\centering
-		\includegraphics[width=0.5\linewidth]{mug-neighbourhoods.png}
-		\caption{The prototypical example of a manifold a mug. Image source: [13]}
-		\label{fig:mug-neighbourhoods}
-	\end{figure}
-
-	\begin{figure}[H]
-		\centering
-		%$ \captionsetup{width=.75\linewidth}
-		\includegraphics[width=0.2\linewidth]{Contractible loops.png}
-		\caption{Diagram showing two double tori with (non)-contractible paths.  Image source[7]}
-		\label{fig:CoLoop}
-	\end{figure}
-\end{frame}
-
-\begin{frame}{Preliminaries- quotient groups (Put actual title later)}
-	ddgagagagaga
-\end{frame}
-
+\include{prerequisites}
 \include{isospectral}
 
 \begin{frame}[fragile]{CMB Anisotropy of Homogeneous Spherical Spaces}
@@ -155,7 +141,7 @@ code-for-last-col = \color{blue}
 	\begin{itemize}
 		\item Multi-connected space: it has non-contractable loops
 		\item Inhomogeneous space: it does not look identical from every point in space
-        \item fixing $\#\Gamma=8$, 
+		\item fixing $\#\Gamma=8$,
 	\end{itemize}
 
 \end{frame}
diff --git a/prerequisites.tex b/prerequisites.tex
new file mode 100644
index 0000000..0f7edf6
--- /dev/null
+++ b/prerequisites.tex
@@ -0,0 +1,21 @@
+\section{Prerequisites}
+\begin{frame}{Introduction}
+	\begin{figure}[H]
+		\centering
+		\includegraphics[width=0.5\linewidth]{mug-neighbourhoods.png}
+		\caption{The prototypical example of a manifold a mug. Image source: [13]}
+		\label{fig:mug-neighbourhoods}
+	\end{figure}
+
+	\begin{figure}[H]
+		\centering
+		%$ \captionsetup{width=.75\linewidth}
+		\includegraphics[width=0.2\linewidth]{Contractible loops.png}
+		\caption{Diagram showing two double tori with (non)-contractible paths.  Image source[7]}
+		\label{fig:CoLoop}
+	\end{figure}
+\end{frame}
+
+\begin{frame}{Preliminaries- quotient groups (Put actual title later)}
+	ddgagagagaga
+\end{frame}