-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerinnerthemeAalborg.sty
81 lines (70 loc) · 3.19 KB
/
beamerinnerthemeAalborg.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
% This is the inner theme file of the Aalborg theme.
% Copyright (c) 2012 by Jesper Kjær Nielsen <jkn@es.aau.dk>
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You can find the GNU General Public License at <http://www.gnu.org/licenses/>.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerinnerthemeAalborg}[2012/01/17 v0.1.1 The Aalborg Beamer Theme]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theme options and definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%theme options
\DeclareOptionBeamer{left}{\def\beamer@sidebarside{left}}
\DeclareOptionBeamer{right}{\def\beamer@sidebarside{right}}
\ExecuteOptionsBeamer{right}
\ProcessOptionsBeamer
\def\beamer@lefttext{left} %used for comparison below
\newlength{\beamer@titlepagewidth}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%beamer specific options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<presentation>%refers to the first four modes (beamer,handout,second and trans). That is, to all modes except the article mode
{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%templates
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%title page
\defbeamertemplate*{title page}{Aalborg theme}{%
\ifx\beamer@sidebarside\beamer@lefttext% sidebar on the left
\setlength{\beamer@titlepagewidth}{\textwidth-\Gm@rmargin+\Gm@lmargin}%
\hspace*{-\Gm@lmargin}
\else% sidebar on the right
\setlength{\beamer@titlepagewidth}{\textwidth+\Gm@rmargin-\Gm@lmargin}%
\fi%
\hfill%
\begin{minipage}[c][\textheight][c]{\beamer@titlepagewidth}
\centering
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}\vspace*{2\baselineskip}
{\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor}\vspace*{\baselineskip}
{\usebeamerfont{institute}\usebeamercolor[fg]{institute}\insertinstitute}\vspace*{\baselineskip}
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate}
\end{minipage}
}
%part page
\AtBeginPart{\frame[plain]{\partpage}} %adds a plain part page as defined below
\defbeamertemplate*{part page}{Aalborg theme}{%
\ifx\beamer@sidebarside\beamer@lefttext% sidebar on the left
\setlength{\beamer@titlepagewidth}{\textwidth-\Gm@rmargin+\Gm@lmargin}%
\hspace*{-\Gm@lmargin}
\else% sidebar on the right
\setlength{\beamer@titlepagewidth}{\textwidth+\Gm@rmargin-\Gm@lmargin}%
\fi%
\hfill%
\begin{minipage}[c][\textheight][c]{\beamer@titlepagewidth}
\centering
{\usebeamerfont{title}\usebeamercolor[fg]{author}{Part \Roman{part}}}\vspace*{\baselineskip}
{\usebeamerfont{title}\usebeamercolor[fg]{title}{\insertpart}}
\end{minipage}
}
}%end of beamer specific options
\mode<all>