forked from alan-turing-institute/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemeTuring.sty
137 lines (127 loc) · 4.5 KB
/
beamerinnerthemeTuring.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
\mode<presentation>
\institute{The Alan Turing Institute}
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\paperwidth,\paperheight);
\fill[color=cornerleaf] (0,0) rectangle (\paperwidth,\paperheight);
\draw[fill=slidebg,color=slidebg] (0,0) -- (0 ,\paperheight) -- (8.75\gridblock,\paperheight) -- (16.5\gridblock,7.2\gridblock) -- (\paperwidth,1.2\gridblock) -- (\paperwidth,0) -- cycle;
\ifnum\thepage>1\relax%
\fill[slidebg,opacity=1] (0,0) rectangle(\paperwidth,\paperheight);
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{Turing}[1][]
{
\vskip0.9\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px,#1]{logo}
\includegraphics[height=1.4\gridblock]{\logofilename}
\end{beamercolorbox}
\vskip1.75\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px,#1]{logo}
\begin{tikzpicture}
\fill[color=line] (0,0) rectangle(\textwidth,0.05\gridblock);
\end{tikzpicture}
\end{beamercolorbox}%
\vskip0.35\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px,#1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}%
\vskip0.3\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px,#1]{title page header}
\usebeamerfont{subtitle}\insertsubtitle\par%
\end{beamercolorbox}%
\vskip0.3\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px,#1]{title page header}
\usebeamerfont{normal text}\insertauthor\par%
\end{beamercolorbox}%
\vfill
}
% Imprint slide
\defbeamertemplate*{imprintpage}{Turing}[1][]
{
\vskip0.6\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px]{logo}
\begin{tikzpicture}
\fill[color=line] (0,0) rectangle(\textwidth,0.05\gridblock);
\end{tikzpicture}
\end{beamercolorbox}%
\vskip0.35\gridblock
\begin{beamercolorbox}[wd=0.6\textwidth,leftskip=0\textwidth,sep=0px]{}
\usebeamerfont{imprint}%
The Alan Turing Institute is the
national centre for data science,
headquartered at the British Library.
\end{beamercolorbox}%
\vfill\vfill\vfill\vfill
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px]{}
\begin{figure}
\includegraphics[width=\textwidth,keepaspectratio]{sponsor-logos-banner.png}%
%\includegraphics[width=\textwidth,keepaspectratio]{sponsor-logos-individual-borders.png}%May be preferred for dark theme
\end{figure}
\end{beamercolorbox}%
}
\newcommand{\imprintpage}{\usebeamertemplate{imprintpage}}
% Section divider page
\AtBeginSection[]{
\begin{frame}
\vskip3.5\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px]{logo}
\begin{tikzpicture}
\fill[color=line] (0,0) rectangle(\textwidth,0.05\gridblock);
\end{tikzpicture}
\end{beamercolorbox}%
\vskip0.35\gridblock
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px]{}
\usebeamerfont{subtitle}\insertsectionhead\par%
\end{beamercolorbox}%
\end{frame}
}
% End slide
\defbeamertemplate*{finalpage}{Turing}[1][]
{
\vskip0.6\paperheight
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth,sep=0px]{logo}
\begin{tikzpicture}
\fill[color=line] (0,0) rectangle(0.45\textwidth,0.05\gridblock);
\end{tikzpicture}
\end{beamercolorbox}%
\vskip0.35\gridblock
\begin{beamercolorbox}[wd=0.45\textwidth,leftskip=0\textwidth,sep=0px]{}
\usebeamerfont{imprint}turing.ac.uk\par\text{@turinginst}
\end{beamercolorbox}%
}
\newcommand{\finalpage}{\usebeamertemplate{finalpage}}
% Page title
\setbeamertemplate{frametitle}
{
\begin{beamercolorbox}[wd=\textwidth,leftskip=0\textwidth]{frametitle}
\vskip0.2\gridblock\insertframetitle\par
\end{beamercolorbox}%
}
\addtobeamertemplate{frametitle}{\vspace*{0.6\gridblock}}{\vspace*{0.1\gridblock}}
% Footer (all pages)
\setbeamertemplate{footline}{
{%
\begin{beamercolorbox}[wd=0.9\textwidth,leftskip=0.05\textwidth,dp=0.7\gridblock]{footerline}
\begin{tikzpicture}
\fill[color=line] (0,0) rectangle(19\gridblock,0.015\gridblock);
\end{tikzpicture}
\vskip\footerfontsize
\begin{columns}[T,totalwidth=\textwidth]
\begin{column}{0.015\textwidth}
\end{column}%
\begin{column}{0.15\textwidth}
\hskip0.5\gridblock\insertdate
\end{column}%
\begin{column}{0.75\textwidth}
\insertinstitute
\vskip0.25\footerfontsize
\inserttitle
\end{column}%
\begin{column}{0.05\textwidth}
\insertframenumber
\end{column}%
\end{columns}
\end{beamercolorbox}
}}