This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhacksoc.sty
84 lines (70 loc) · 2.9 KB
/
hacksoc.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
\usepackage{amsfonts, amsmath, amsthm}
\usepackage[sfdefault]{cabin}
\usepackage[T1]{fontenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{epigraph}
\graphicspath{ {./images/} }
\usetheme{Madrid}
\usecolortheme{dolphin}
\beamertemplatenavigationsymbolsempty
\definecolor{hacksoc_green}{RGB}{0, 149, 59}
% Sets Colours for Titles Bullet Points
\setbeamercolor*{structure}{fg=hacksoc_green}
% Set math mode to look normal
\usefonttheme[onlymath]{serif}
% Sets Colours for Bottom Bar
\setbeamercolor*{palette primary}{use=structure,fg=white,bg=hacksoc_green}
\setbeamercolor*{palette secondary}{use=structure,fg=white,bg=hacksoc_green}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=hacksoc_green}
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{\fill}
\insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\newcommand{\ubcf}[1]{\usebeamercolor[fg]{#1}\usebeamerfont{#1}}
\setbeamertemplate{title page}{
\center\includegraphics[height=3cm]{hacksoc logo.png}\par
{\center\ubcf{title}\inserttitle\par}
{\center\ubcf{subtitle}\insertsubtitle\par}
{\center\ubcf{author}\insertauthor\par}
{\center\ubcf{date}\insertinstitute\par} %I've swapped the styling of date and
{\center\ubcf{institute}\insertdate\par} %institute, because date looks too big
}
\setbeamertemplate{frametitle} {{
\@tempdima=\textwidth \advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\usebeamerfont{frametitle} \strut\insertframetitle\strut\par
}
{\ifx\insertframesubtitle\@empty\else
\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle\strut\par
\fi}
\vspace{0.5em}
}
\AtBeginSection[]{{
\setbeamertemplate{logo}{}
\begin{frame}
\center\includegraphics[height=2.5cm]{hacksoc logo.png}\vspace{1em}\par
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\insertsectionhead\par%
\end{beamercolorbox}
\end{frame}
}}
% This is a titleslide without the little (topright) hacksoc logo
\newcommand{\maketitleslide}{{\setbeamertemplate{logo}{}\begin{frame}\titlepage\end{frame}}}
\newcommand{\footsep}{${}^{\mathrm{,}}$}
% Default Values, may be overriden if necessary
\institute{Hacksoc Nottingham}
\logo{\includegraphics[height=1.2cm]{hacksoc logo.png}\vspace{220pt}}