From 7afe2de9abfdbf6045863a9a31dec51b62b896a7 Mon Sep 17 00:00:00 2001
From: Yann Herklotz <git@yannherklotz.com>
Date: Mon, 27 Sep 2021 17:01:34 +0100
Subject: Add presentation

---
 presentation/beamerthemeauriga.sty | 128 +++++++++++++++++++++++++++++++++++++
 1 file changed, 128 insertions(+)
 create mode 100644 presentation/beamerthemeauriga.sty

(limited to 'presentation/beamerthemeauriga.sty')

diff --git a/presentation/beamerthemeauriga.sty b/presentation/beamerthemeauriga.sty
new file mode 100644
index 0000000..5ecc877
--- /dev/null
+++ b/presentation/beamerthemeauriga.sty
@@ -0,0 +1,128 @@
+% Auriga theme
+% https://github.com/anishathalye/auriga
+
+% ====================
+% Dependencies
+% ====================
+
+\RequirePackage{exscale}
+\RequirePackage{ragged2e}
+\RequirePackage{changepage}
+\RequirePackage{fontspec}
+\RequirePackage{xpatch}
+\RequirePackage{microtype}
+\RequirePackage{xparse}
+\RequirePackage{xspace}
+\RequirePackage{graphicx}
+
+% ====================
+% Fonts
+% ====================
+
+\newfontfamily\Raleway[Ligatures=TeX]{Raleway}
+\newfontfamily\Lato[Ligatures=TeX]{Lato}
+\newfontfamily\HKGrotesk[Ligatures=TeX]{HK Grotesk}
+
+\usefonttheme{professionalfonts}
+
+\setsansfont{HKGrotesk}[
+  UprightFont=*-Regular,
+  ItalicFont=*-Italic,
+  BoldFont=*-Bold,
+  BoldItalicFont=*-BoldItalic
+]
+
+\defaultfontfeatures{Ligatures=NoCommon}
+\setmonofont[Renderer=Basic]{Iosevka}
+
+\setbeamerfont{title page}{family=\Raleway}
+\setbeamerfont{title page title}{size=\LARGE,series=\bfseries}
+\setbeamerfont{title page subtitle}{size=\small}
+\setbeamerfont{title page author}{size=\footnotesize}
+\setbeamerfont{title page institute}{size=\scriptsize}
+\setbeamerfont{frametitle}{family=\Raleway,size=\large,series=\bfseries}
+\setbeamerfont{caption}{size=\Macros}
+
+% ====================
+% footnotesizeb
+% ====================
+
+\newcommand{\samelineand}{\qquad}
+
+% ====================
+% Elements
+% ====================
+
+% Itemize
+
+\setbeamertemplate{itemize item}[circle]
+\setbeamertemplate{itemize subitem}[circle]
+\setbeamertemplate{itemize subsubitem}[circle]
+%\xpatchcmd{\itemize}
+%  {\def\makelabel}
+%  {\ifnum\@itemdepth=1\relax
+%     \setlength\itemsep{3ex}% separation for first level
+%   \else
+%     \ifnum\@itemdepth=2\relax
+%       \setlength\itemsep{0.5ex}% separation for second level
+%     \else
+%       \ifnum\@itemdepth=3\relax
+%         \setlength\itemsep{0.5ex}% separation for third level
+%   \fi\fi\fi\def\makelabel
+%  }
+% {}
+% {}
+
+% Equation
+\setlength\belowdisplayshortskip{2ex}
+
+% Caption
+\setlength{\abovecaptionskip}{2ex}
+\setlength{\belowcaptionskip}{1ex}
+\setbeamertemplate{caption}
+{
+    {\usebeamerfont{caption}\insertcaption}
+}
+
+% Navigation
+\beamertemplatenavigationsymbolsempty
+
+% ====================
+% Components
+% ====================
+
+% Title page
+\setbeamertemplate{title page}
+{
+  \begin{centering}
+    \vskip5ex plus 1filll
+    {\usebeamerfont{title page title}\usebeamercolor[fg]{title page}\inserttitle\\[0.5ex]}
+    {\usebeamerfont{title page subtitle}\usebeamercolor[fg]{title page}\insertsubtitle\\[3ex]}
+    {\par\noindent\centering\color{lightgreen}\rule{350pt}{2pt}\\[3ex]}
+    {\usebeamerfont{title page author}\usebeamercolor[fg]{title page}\insertauthor\\[2ex]}
+    {\usebeamerfont{title page institute}\usebeamercolor[fg]{title page}\insertinstitute\\[1ex]}
+    \vskip0pt plus 1filll
+  \end{centering}
+  {\hfill\includegraphics[height=1cm]{./assets/oopsla21.png}}
+}
+
+% Footer
+\setbeamertemplate{footline}{
+  \hspace{2em}\includegraphics[height=1cm]{./assets/imperial_logo.pdf}%
+    \hfill%
+    \usebeamercolor[fg]{page number in head/foot}%
+    \usebeamerfont{page number in head/foot}%
+    \hspace{2em}%
+    \insertframenumber\kern1em\vskip2ex%
+}
+
+% Frame title
+\setbeamertemplate{frametitle}{
+    \nointerlineskip
+    \vskip2ex
+    {\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle\\[-2.5ex]}
+    {\par\color{lightgreen}\rule{390pt}{2pt}}
+}
+
+% Alert
+\setbeamerfont{alerted text}{series=\bfseries}
-- 
cgit 

