-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerinnerthemesussex.sty
41 lines (35 loc) · 1.65 KB
/
beamerinnerthemesussex.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
\mode<presentation>
\setbeamertemplate{background}
{
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox[fill=sussexflint](-1,0) rectangle(\the\paperwidth,1.2cm);
\fill[sussexflint] (0,0) rectangle(\paperwidth,1.4);
{\node[anchor=west] at (0.01\paperwidth,0.61){\includegraphics[height=1.2cm,keepaspectratio, trim=1.5cm 1.5cm 1.5cm 1.5cm, clip]{sussex_logo.png}};}
\expandafter\ifstrequal\expandafter{\experimentlogo}{none}{}{\node[anchor=east] at (0.99\paperwidth,0.66){\includegraphics[height=1cm,keepaspectratio]{\experimentlogo}};}
\end{tikzpicture}
\end{beamercolorbox}
}
\defbeamertemplate{subsection in toc}{bullets}{%
\leavevmode
\parbox[t]{1em}{\textbullet\hfill}%
\parbox[t]{\dimexpr\textwidth-1em\relax}{\inserttocsubsection}\par}
\defbeamertemplate{section in toc}{sections numbered roman}{%
\leavevmode%
\textcolor{sussexflint}{\inserttocsectionnumber.}\ %
\inserttocsection\par}
\setbeamertemplate{section in toc}[sections numbered roman]
\setbeamertemplate{subsection in toc}[bullets]
% Title page
\defbeamertemplate*{title page}{sussex}[1][]{
\begin{beamercolorbox}[wd=\paperwidth,ht=\paperheight]{frame}%
\begin{tikzpicture}
\useasboundingbox(0,0) rectangle(\the\paperwidth,\the\paperheight);
{\node[anchor=center, black, font=\LARGE] at (0.5\paperwidth,0.5\paperheight){\usebeamerfont{title}\inserttitle\par};}
{\node[anchor=center, black] at (0.5\paperwidth,0.2\paperheight){\usebeamerfont{author}\insertauthor};}
{\node[anchor=center, black] at (0.5\paperwidth,0.1\paperheight){\usebeamerfont{author}\insertdate};}
\end{tikzpicture}
\end{beamercolorbox}
}
\mode
<all>