-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeamerouterthemeBTH_msv.sty
More file actions
196 lines (162 loc) · 4.88 KB
/
beamerouterthemeBTH_msv.sty
File metadata and controls
196 lines (162 loc) · 4.88 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
% BTH Beamer template
% Created 2009-06-02
% Adapted to BTH 2011 GP 2012-03-02
% Mikael.Svahnberg@bth.se
% Assumed page dimensions (128mm x 96mm).
\RequirePackage{ifthen}
\RequirePackage{pgf}
\RequirePackage{helvet}
\mode<presentation>
% Lengths & Such
\newlength{\margin} \setlength{\margin}{0.5cm}
\newlength{\smallmargin} \setlength{\smallmargin}{0.1cm}
\newlength{\logoindent} \setlength{\logoindent}{0.5cm}
\newlength{\logowidth} \setlength{\logowidth}{1.3cm}
\newlength{\logoheight} \setlength{\logoheight}{2.1cm}
\newlength{\logoonlywidth} \setlength{\logoonlywidth}{1cm}
\newlength{\logoonlywidthfirst} \setlength{\logoonlywidthfirst}{1.7cm}
\newlength{\headwidth} \setlength{\headwidth}{12cm}
\newlength{\headerwidth} \setlength{\headerwidth}{12.7cm}
\newlength{\headerindent} \setlength{\headerindent}{1.7cm}
\newlength{\headerbgheight} \setlength{\headerbgheight}{1.6cm}
\newlength{\logoX}
\newlength{\logoY}
\newlength{\sloganY}
\newcommand{\bthslogan}{in real life}
\newcommand{\firstslide}{%
\def\firstpage{1}%
\setlength{\logowidth}{2cm}%
\setlength{\logoheight}{3.5cm}%
\setlength{\logoX}{1.5mm}%
\setlength{\logoY}{2.7cm}%
\def\slogansize{6}%
\setlength{\sloganY}{3cm}%
\pgfaliasimage{BTHLogo}{BTHLogoWhiteFirst}%
}%
\newcommand{\notfirstslide}{%
\def\firstpage{0}%
\setlength{\logowidth}{1.3cm}%
\setlength{\logoheight}{2.4cm}%
\setlength{\logoX}{1.5mm}%
\setlength{\logoY}{2.0cm}%
\def\slogansize{4}%
\setlength{\sloganY}{2.1cm}%
\pgfaliasimage{BTHLogo}{BTHLogoWhite}%
}%
\pgfdeclareradialshading{BTHBGBlue}{\pgfpoint{0cm}{0.5cm}} {rgb(0cm)=(0.03,0.45,0.70); rgb(1cm)=(0,0.3,0.60); rgb(2cm)=(0,0.3,0.45)} %
% Images
\pgfdeclareimage[width=\logoonlywidth]{BTHLogoWhite}{BTH_Logo_white.pdf}
\pgfdeclareimage[width=\logoonlywidthfirst]{BTHLogoWhiteFirst}{BTH_Logo_white.pdf}
\pgfdeclareimage[width=\headerwidth, height=\headerbgheight]{BTHHeaderBG}{BTHHeaderBG.png}
% headline
\defbeamertemplate*{headline}{bth theme}%
{%
% Frame Numbers (Not available in Official BTH slides)
\pgfputat{\pgfpoint{\paperwidth-\smallmargin}{-0.5mm}}{\pgfbox[right,top]{%
\usebeamerfont{frame number in foot}%
\usebeamercolor[fg]{frame number in foot}\insertframenumber{}/\inserttotalframenumber%
}}%
}
\newcommand{\oldframetitle}[1]{}
\let\oldframetitle=\frametitle
\renewcommand{\frametitle}[1]{%
\oldframetitle{%
%
\begin{tabular}{l l}%
\parbox[t][][t]{2em}{\vfill \hfill} &%
\parbox[t][][t]{\dimexpr0.9\paperwidth-2.2em\relax}{%
\vspace*{\fill}%
#1%
\vspace*{\fill}%
}%
\end{tabular}%
}%
}%
% frametitle
\defbeamertemplate*{frametitle}{bth theme}%
{%
\vspace{0.2em}%
\begin{beamercolorbox}[wd=\headwidth,left]{frame title}%
\hspace{\headerindent}
\begin{minipage}[t][1.5cm]{2in}
\insertframetitle%
\end{minipage}
\end{beamercolorbox}%
\vspace{0.6cm}
}
% footline
\defbeamertemplate*{footline}{bth theme}
{%
}%
% set left and right text margins
\setbeamersize{text margin left=\margin, text margin right=\margin}
% background
\defbeamertemplate*{background canvas}{bth theme}
{%
\ifnum\c@framenumber=1%
\firstslide%
\else%
\notfirstslide%
\fi%
%
\begin{pgfpicture}{0mm}{0mm}{\paperwidth}{\paperheight}
% Black bar at top
{
\color{bthblackbg}
\pgfrect[fill]{\pgfpoint{-1mm}{\paperheight}}{\pgfpoint{\paperwidth+1mm}{-3mm}}
}
% Header box
\ifx\firstpage\undefined
\else
\if\firstpage0
\pgfputat{\pgfpoint{0mm}{\paperheight-7mm}}{\pgfbox[left,top]{\pgfuseimage{BTHHeaderBG}}}
\fi
\fi
% BTH URL
\color{bthgray}
\fontfamily{phv}\fontseries{li}\fontsize{6}{6}\selectfont
\pgfputat{\pgfpoint{\logowidth+\logoindent+0.1cm}{\paperheight-0.5mm}}{\pgfbox[left,top]{www.bth.se}}
% Logo
\pgfpathrectangle{\pgfpoint{\logoindent}{\paperheight}}{\pgfpoint{\logowidth}{-\logoheight}}
\pgfshadepath{BTHBGBlue}{0}
\color{white}
\pgfputat{\pgfpoint{\logoindent+\logoX}{\paperheight-\logoY}}{\pgfuseimage{BTHLogo}}
% Slogan
\fontfamily{phv}\fontseries{li}\fontsize{\slogansize}{\slogansize}\selectfont
\pgfputat{\pgfpoint{\logoindent+0.5\logowidth}{\paperheight-\sloganY}}{\pgfbox[center,top]{\bthslogan}}
%
% \ifnum\c@framenumber=1%
% {% First slide
% % URL
% % Logo
% }%
% \else%
% {% All other slides
% % Header box
% % URL
% \color{bthgray}
% \fontfamily{phv}\fontseries{li}\fontsize{6}{6}\selectfont
% \pgfputat{\pgfpoint{\logowidth+\logoindent+0.1cm}{\paperheight-0.5mm}}{\pgfbox[left,top]{www.bth.se}}
% % Logo
% \pgfpathrectangle{\pgfpoint{\logoindent}{\paperheight}}{\pgfpoint{\logowidth}{-\logoheight}}
% \pgfshadepath{BTHBGBlue}{0}
% \color{white}
% \pgfputat{\pgfpoint{\logoindent+1.5mm}{\paperheight-1.7cm}}{\pgfuseimage{BTHLogoWhite}}
% \fontfamily{phv}\fontseries{li}\fontsize{4}{4}\selectfont
% \pgfputat{\pgfpoint{\logoindent+0.5\logowidth}{\paperheight-1.8cm}}{\pgfbox[center,top]{\bthslogan}}
% }%
% \fi%
\end{pgfpicture}
%
%
% \ifnum\c@framenumber=1%
% {
%
% }
% % \pgfuseimage{BTHbg_first}
% \else%
% \pgfuseimage{BTHbg}%
% \fi%
}
\mode
<all>