-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeUniversityOfManchester.sty
76 lines (62 loc) · 1.95 KB
/
beamerthemeUniversityOfManchester.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
% (Unofficial) University of Manchester Beamer Theme
% Based upon the official PowerPoint styling.
% -------------------------------------------
% Authors: <andrew.mundy@cs.man.ac.uk>
% With help from the UA beamer theme:
% http://nschloe.blogspot.de/2009/04/ua-beamer-theme_15.html
% Options
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\newif\ifbeamer@dark
\beamer@darkfalse
\DeclareOptionBeamer{dark}{\beamer@darktrue}
\newif\ifbeamer@cabin
\beamer@cabinfalse
\DeclareOptionBeamer{cabin}{\beamer@cabintrue}
\newif\ifbeamer@darktitle
\beamer@darktitlefalse
\DeclareOptionBeamer{darktitle}{\beamer@darktitletrue}
\newif\ifbeamer@framenumber
\beamer@framenumberfalse
\DeclareOptionBeamer{framenumber}{\beamer@framenumbertrue}
\newif\ifbeamer@totalframenumber
\beamer@totalframenumberfalse
\DeclareOptionBeamer{totalframenumber}{\beamer@totalframenumbertrue}
\def\beamer@titleframestart{0}
\DeclareOptionBeamer{titleframestart}[0]{\def\beamer@titleframestart{#1}}
\ProcessOptionsBeamer
% Required Packages
\RequirePackage{ifthen}
\ifbeamer@cabin
\RequirePackage[sfdefault]{cabin}
\RequirePackage{ifxetex}
\RequirePackage{ifluatex}
\ifthenelse{\boolean{xetex}\OR\boolean{luatex}}{}{
\RequirePackage[T1]{fontenc}}
\RequirePackage{setspace}
\setstretch{1.2}
\fi
\RequirePackage{pgfcore}
\RequirePackage{tikz}
% Additional work to allow for sections of dark frames
\newif\ifbeamer@darkframe
\beamer@darkframefalse
\newenvironment{darkframes}{%
\beamer@darkframetrue % Make the frame dark
%
%% Set the colours for this group of frames
\begingroup
\setbeamercolor*{structure}{fg=white, bg=uompurple}
\setbeamercolor*{title}{fg=white, bg=uompurple}
\setbeamercolor*{normal text}{fg=white, bg=white}
\usebeamercolor*{normal text}
}{%
\endgroup
\beamer@darkframefalse % Undo this
}
\mode<presentation>
\usecolortheme{UniversityOfManchester}
\usefonttheme{UniversityOfManchester}
\useinnertheme{UniversityOfManchester}
\useoutertheme{UniversityOfManchester}
\mode
<all>