beamerthemeaarhusuniversity.sty 8.77 KB
Newer Older
1
2
3
4
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% THIS IS THE LOCAL INSTALL VERSION %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

5
6
7
8
9
10
11
12
13
\RequirePackage{fontspec}
\RequirePackage{tikz}
\RequirePackage[absolute,overlay]{textpos}

\mode<presentation>
%%% Removing navigation symbols
\setbeamertemplate{navigation symbols}{}
\setbeamersize{text margin left=4em,text margin right=4em}

14
%%% Colors
15
16
\definecolor{AUDark}{RGB}{0,37,70}
\definecolor{AULight}{RGB}{55,160,203}
17
\definecolor{AUTransparent}{RGB}{137,201,229}
18
19
20
21
\definecolor{AUGreen}{RGB}{139,173,63}
\definecolor{AUMagenta}{RGB}{226,0,122}

%%% fonts
22
\setsansfont{AU Passata}
23

24
25
26
27
\newfontfamily{\AUtextlight}{AU Passata Light}
\newfontfamily{\AUpeto}{AU Peto}

\newfontfamily{\logofont}{AU Logo} % for generating the logos
Henrik Korsgaard's avatar
Henrik Korsgaard committed
28
% In the AULogoReg.ttf font the logo glyphs are encoded at indexes
29
30
31
% \XeTeXglyph2 Peto Logo
% \XeTeXglyph3 AU Seal
% \XeTeXglyph4 BSS Seal 
Henrik Korsgaard's avatar
Henrik Korsgaard committed
32
% \XeTeXglyph4 BSS Seal dark
33

34
35
36
37
38
39
40
41
42
43
44
45
46
47
% Logo commands
\newcommand{\AUSeal}{{\logofont
\XeTeXglyph3}}

\newcommand{\AULogo}{{\logofont
\XeTeXglyph2}}

\newcommand{\BSSLogo}{{\logofont
\XeTeXglyph4}}

\newcommand{\peto}[1]{{\AUpeto #1}}

\newcommand{\textlight}[1]{{\AUtextlight #1}}

Henrik Korsgaard's avatar
Henrik Korsgaard committed
48
% There you go Simon :)
49
\renewcommand\mathfamilydefault{cmr}
50
51
52
53
54
55
\renewcommand\bibfont{\tiny}

\TPGrid[16pt,9pt]{16}{9}

\defbeamertemplate{frametitle}{AUWhite}{%
    \begin{textblock}{14}[0,1](0,1.5)%
56
       {\color{white}\textbf{\huge\MakeUppercase\insertframetitle}}%
57
58
59
60
61
62
63
64
65
66
    \end{textblock}
    
   \begin{textblock}{14}[0,0](1,2)%
      \tikz \fill [white] (-0.1,0) rectangle (0.7,0.05);
   \end{textblock}
   \vspace{3.5em}
}

\defbeamertemplate{frametitle}{AUDark}{%
    \begin{textblock}{14}[0,1](0,1.5)%
67
       {\color{AUDark}\bf{\huge\MakeUppercase\insertframetitle}}%
68
69
70
71
72
73
74
75
76
77
    \end{textblock}
    
   \begin{textblock}{14}[0,0](1,2)%
      \tikz \fill [AUDark] (-0.1,0) rectangle (0.7,0.05);
   \end{textblock}
   \vspace{3.5em}
}

%%%% FOOTERS
\defbeamertemplate{footline}{AUDark}{%
78
    \begin{textblock}{3}[1,0](8.6,8.7)%
79
80
81
        \hfill\fontsize{4}{0}\selectfont SLIDE \insertframenumber\ IN \inserttotalframenumber
        \end{textblock}
        \begin{textblock}{1}[0,1](0,8.8)%
82
        \large\AULogo
83
84
85
86
87
88
89
90
    \end{textblock}
        \begin{textblock}{10}[0,1](1.1,8.5)%
        AARHUS
    \end{textblock}
    \begin{textblock}{10}[0,1](1.1,8.75)%
        UNIVERSITY
    \end{textblock}
    \begin{textblock}{10}[0,1](1.1,9)%
91
        \fontsize{4}{0}\textlight{\insertinstitute}
92
93
    \end{textblock}
    \begin{textblock}{1}[0.5,1](15.9,9)%
94
        \huge\AUSeal
95
96
97
98
    \end{textblock}
}

\defbeamertemplate{footline}{AUWhite}{%
99
    \begin{textblock}{3}[1,0](8.6,8.7)%
100
101
102
        \hfill\fontsize{4}{0}\selectfont SLIDE \insertframenumber\ IN \inserttotalframenumber
        \end{textblock}
        \begin{textblock}{1}[0,1](0,8.8)%
103
        {\color{white}\large\AULogo}
104
105
106
107
108
109
110
111
    \end{textblock}
        \begin{textblock}{10}[0,1](1.1,8.5)%
        AARHUS
    \end{textblock}
    \begin{textblock}{10}[0,1](1.1,8.75)%
        UNIVERSITY
    \end{textblock}
    \begin{textblock}{10}[0,1](1.1,9)%
112
        \fontsize{4}{0}\textlight{\insertinstitute}
113
114
    \end{textblock}
    \begin{textblock}{1}[0.5,1](15.9,9)%
115
        \huge\AUSeal
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
    \end{textblock}
}

%%% Slide types set in options

\makeatletter
\define@key{beamerframe}{AUDark}[true]{%
    \color{white}
    \setbeamertemplate{frametitle}[AUWhite]%
    \setbeamertemplate{footline}[AUWhite]%
    \setbeamercolor*{background canvas}{bg=AUDark,fg=white}%
    \setbeamercolor*{structure}{fg=white}%
    \setbeamercolor*{itemize/enumerate body}{fg=white}%
    \setbeamercolor*{itemize/enumerate subbody}{fg=white}%
    \setbeamercolor*{itemize/enumerate subsubbody}{fg=white}%
    \setbeamercolor*{description body}{fg=white}%
132
    \setbeamercolor{math text}{fg=white}%
133
    \setbeamercolor{caption}{fg=white}%
134
135
}

136

137
138
139
140
141
142
143
144
145
146
\define@key{beamerframe}{AUGreen}[true]{%
    \color{white}
    \setbeamertemplate{frametitle}[AUWhite]%
    \setbeamertemplate{footline}[AUWhite]%
    \setbeamercolor*{background canvas}{bg=AUGreen,fg=white}%
    \setbeamercolor*{structure}{fg=white}%
    \setbeamercolor*{itemize/enumerate body}{fg=white}%
    \setbeamercolor*{itemize/enumerate subbody}{fg=white}%
    \setbeamercolor*{itemize/enumerate subsubbody}{fg=white}%
    \setbeamercolor*{description body}{fg=white}%
147
    \setbeamercolor{math text}{fg=white}%
148
    \setbeamercolor{caption}{fg=white}%
149
150
151
152
153
154
155
156
157
158
159
160
}

\define@key{beamerframe}{AUMagenta}[true]{%
    \color{white}
    \setbeamertemplate{frametitle}[AUWhite]%
    \setbeamertemplate{footline}[AUWhite]%
    \setbeamercolor*{background canvas}{bg=AUMagenta,fg=white}%
    \setbeamercolor*{structure}{fg=white}%
    \setbeamercolor*{itemize/enumerate body}{fg=white}%
    \setbeamercolor*{itemize/enumerate subbody}{fg=white}%
    \setbeamercolor*{itemize/enumerate subsubbody}{fg=white}%
    \setbeamercolor*{description body}{fg=white}%
161
    \setbeamercolor{math text}{fg=white}%
162
    \setbeamercolor{caption}{fg=white}%
163
164
165
166
167
168
169
170
171
172
173
174
}

\define@key{beamerframe}{AUDarkClean}[true]{%
    \color{white}
    \setbeamertemplate{frametitle}[AUWhite]%
    \setbeamertemplate{footline}{}%
    \setbeamercolor*{background canvas}{bg=AUDark,fg=white}%
    \setbeamercolor*{structure}{fg=white}%
    \setbeamercolor*{itemize/enumerate body}{fg=white}%
    \setbeamercolor*{itemize/enumerate subbody}{fg=white}%
    \setbeamercolor*{itemize/enumerate subsubbody}{fg=white}%
    \setbeamercolor*{description body}{fg=white}%
175
    \setbeamercolor{caption}{fg=white}%
176
    \setbeamercolor{math text}{fg=white}%
177
178
179
180
181
182
183
184
185
186
187
188
189
    \setbeamercolor{footnote}{fg=white}%
}

\define@key{beamerframe}{AUAcademics}[true]{%
    \color{white}
    \setbeamertemplate{frametitle}[AUWhite]%
    \setbeamertemplate{footline}[AUWhite]%
    \setbeamercolor*{background canvas}{bg=AULight,fg=white}%
    \setbeamercolor*{structure}{fg=white}%
    \setbeamercolor*{itemize/enumerate body}{fg=white}%
    \setbeamercolor*{itemize/enumerate subbody}{fg=white}%
    \setbeamercolor*{itemize/enumerate subsubbody}{fg=white}%
    \setbeamercolor*{description body}{fg=white}%
190
    \setbeamercolor{math text}{fg=white}%
191
    \setbeamercolor{caption}{fg=white}%
192
193
194
}

\define@key{beamerframe}{AUClean}[true]{%
195
    \setbeamertemplate{footline}{}% 
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
}

\makeatother

% Resetting the frame style 
\BeforeBeginEnvironment{frame}{%

    \setbeamertemplate{frametitle}[AUDark]%
    \setbeamertemplate{footline}[AUDark]%
    \setbeamercolor*{background canvas}{bg=white,fg=AUDark}%
    \setbeamercolor*{normal text}{bg=white,fg=AUDark}%
    \setbeamercolor*{structure}{bg=white,fg=AUDark}%
    \setbeamercolor*{itemize/enumerate body}{fg=AUDark}%
    \setbeamercolor*{itemize/enumerate subbody}{fg=AUDark}%
    \setbeamercolor*{itemize/enumerate subsubbody}{fg=AUDark}%
    \setbeamercolor*{description body}{fg=AUDark}%
212
213
    \setbeamercolor{caption}{fg=AUDark}%
    \setbeamercolor{footnote}{fg=AUDark}%
214
    \setbeamercolor{math text}{fg=black}%
215
216
217
    \color{AUDark}
    
    \setbeamertemplate{description item}{%
218
        \bf\insertdescriptionitem\hfill
219
220
221
222
223
224
225
226
227
    }
}

%%%% TITLE PAGE AND TITLE FOOTER

\defbeamertemplate*{title page}{aarhusuniversity}[1][]
{ 
    \begin{textblock}{14}[0,1](1,5)%
        {\color{white}
228
        \bf{\Huge\MakeUppercase\inserttitle\\\vspace{0.3em}\large\insertshorttitle}}
229
230
231
    \end{textblock}
    
    \begin{textblock}{10}[0,0](1,5)%
Henrik Korsgaard's avatar
Henrik Korsgaard committed
232
       %\vspace{1em}{\color{white}\textlight{\insertauthor\hspace{0.5em}\insertshortauthor}}
233
234
235
236
    \end{textblock}
}

\defbeamertemplate{footline}{AUTitle}{%
237
    \begin{textblock}{5}[0.5,0](6.9,8.7)%
238
239
240
        {\color{white}\hfill\insertdate}
    \end{textblock}
        
241
    \begin{textblock}{0}[0,1](0,8.8)%
242
        {\color{white}\large\AULogo}
243
244
245
246
247
248
249
250
251
252
        \end{textblock}
        \begin{textblock}{10}[0,1](1.1,8.5)%
        {\color{white}AARHUS}
    \end{textblock}
    
    \begin{textblock}{10}[0,1](1.1,8.75)%
        {\color{white}UNIVERSITY}
    \end{textblock}
    
    \begin{textblock}{10}[0,1](1.1,9)%
253
        {\color{white}\fontsize{4}{0}\textlight{\insertinstitute}}
254
255
256
    \end{textblock}
    
    \begin{textblock}{1}[0.5,1](15.9,9)%
257
       {\color{white}\huge\AUSeal}
258
259
    \end{textblock}
}
260
261


262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
%% Script to ensure that the title page is styled correctly
\makeatletter
\def\ps@navigation@titlepage{%
  \setbeamertemplate{footline}[AUTitle]
  \setbeamercolor{background canvas}{bg=AUDark}
  
  \@nameuse{ps@navigation}}
\addtobeamertemplate{title page}{\thispagestyle{navigation@titlepage}}{}
\makeatother

\AtBeginSection[] % 
{
\begin{frame}\frametitle{Outline}
    \tableofcontents[currentsection]
\end{frame}
}

\makeatletter
\patchcmd{\beamer@sectionintoc}
  {\vfill}
  {\vskip\itemsep}
  {}
 {}
\makeatother  

\setbeamertemplate{section in toc}{%
288
    {\color{AUDark}\bf\inserttocsectionnumber.~\inserttocsection}%
289
290
291
    \vspace{2pt}
}

292
%% Captions styling
293
\setlength\abovecaptionskip{2pt}
294

295
\setbeamertemplate{caption}{%
296
    {\tiny\insertcaptionname ~\insertcaptionnumber: \insertcaption}%
297
}
298
299
%% Footnote styling
\setbeamerfont{footnote}{size=\tiny}
300

301

302
303
\mode<all>