This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerthemeNWERC2013.sty
executable file
·240 lines (211 loc) · 7.67 KB
/
beamerthemeNWERC2013.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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
\ProvidesPackage{beamerthemeNWERC2013}[2013/11/18]
\usepackage[T1]{fontenc}
\renewcommand*\familydefault{\sfdefault}
\definecolor{ICPCBlue}{RGB}{74,139,195}
\definecolor{ICPCRed}{RGB}{177,42,28}
\definecolor{ICPCYellow}{RGB}{253,186,49}
\definecolor{ACMBlue}{RGB}{0,66,117}
\useoutertheme[width=.15\paperwidth]{sidebar}
\setlength{\beamer@headheight}{.185\paperheight}
\pgfdeclareimage[width=.30\paperwidth]{nwerc-logo}{nwerclogo}
\pgfdeclareimage[width=.13\paperwidth]{nwerc-logo-small}{nwerclogo}
\pgfdeclareimage[height=.15\paperheight]{icpc-horizontal}{icpc-logo-13}
\pgfdeclareimage[width=.85\paperwidth]{icpc-bg}{icpc-bg}
\setbeamertemplate{footline}[text line]{%
% \insertshortauthor\strut\hfill\insertshorttitle\hfill\insertshortdate\hspace{1em}\insertframenumber/\inserttotalframenumber
}
\setbeamertemplate{background canvas}{%
\begin{pgfpicture}
\pgf@relevantforpicturesizefalse
\DoBackground
% \pgftransformxshift{-\Gm@lmargin}
%\pgftransformyshift{5.5pt}
\pgfpathrectanglecorners{\pgfpoint{.15\paperwidth}{-.19\paperheight}}{\pgfpoint{\paperwidth}{\paperheight}}
\pgfsetfillcolor{ICPCRed}
\pgfusepath{fill}
\pgfpathrectanglecorners{\pgfpoint{0pt}{-.19\paperheight}}{\pgfpoint{.15\paperwidth}{\paperheight}}
\pgfsetfillcolor{ICPCBlue}
\pgfusepath{fill}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.19\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{\paperheight}}
\pgfsetlinewidth{3.5pt}
\pgfsetinnerlinewidth{1pt}
\pgfsetinnerstrokecolor{ICPCYellow}
\pgfsetrectcap
\pgfsetcolor{white}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.19\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetcolor{ICPCYellow}
\pgfusepath{stroke}
\pgftext[at=\pgfpoint{.01\paperwidth}{-.98\paperheight},left,base]{\pgfuseimage{nwerc-logo-small}}%\pgfuseimage{large-corner}}
% \pgftext[at=\pgfpoint{.18\paperwidth}{-\paperheight},left,base]{\pgfuseimage{icpc-bg}}
\end{pgfpicture}
}
\setbeamertemplate{sidebar left}{%
\vskip7pt
\insertverticalnavigation{\beamer@\sidebarwidth}%
}
\addtobeamertemplate{title page}{%
\usebeamertemplate{title background}%
\vskip .2\paperheight%
}
{}
\newcommand\DoBackground{%
\pgfpathmoveto{\pgfpointorigin}
\pgfpathrectanglecorners{\pgfpoint{0pt}{0pt}}{\pgfpoint{\paperwidth}{-\paperheight}}
\pgfsetfillcolor{white}
\pgfusepath{fill}
}
\setbeamertemplate{title background}{%
\begin{pgfpicture}
\pgf@relevay30yntforpicturesizefalse
\pgftransformxshift{-\Gm@lmargin}
\pgftransformyshift{5.5pt}
\DoBackground
%logo
\pgftext[at=\pgfpoint{.02\paperwidth}{-.05\paperheight},left,base]{\pgfuseimage{nwerc-logo}}
\pgftext[at=\pgfpoint{.98\paperwidth}{-.98\paperheight},right,base]{\pgfuseimage{icpc-horizontal}}
% Purple short bar on left
\pgfpathrectanglecorners{\pgfpoint{0pt}{-.19\paperheight}}{\pgfpoint{.15\paperwidth}{-.24\paperheight}}
\pgfsetfillcolor{ICPCBlue}
\pgfusepath{fill}
% Followed by orange bar on right
\pgfpathrectanglecorners{\pgfpoint{.15\paperwidth}{-.19\paperheight}}{\pgfpoint{\paperwidth}{-.24\paperheight}}
\pgfsetfillcolor{ICPCRed}
\pgfusepath{fill}
% A stroke down the middle
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.19\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.24\paperheight}}
\pgfsetlinewidth{3.5pt}
\pgfsetinnerlinewidth{1pt}
\pgfsetinnerstrokecolor{ICPCYellow}
\pgfsetrectcap
\pgfsetcolor{white}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.28\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.45\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetinnerlinewidth{0pt}
\pgfsetcolor{ICPCYellow}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.55\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.6\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetcolor{ICPCYellow}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.7\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.73\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetcolor{ACMBlue}
\pgfusepath{stroke}
\pgftext[at=\pgfpoint{.16\paperwidth}{-.72\paperheight},left,base]{\tiny 2013.nwerc.eu}
\end{pgfpicture}
}
\setbeamertemplate{headline}{
\vspace{.20\paperheight}
\hspace{.05\paperwidth}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Inner Theme
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\useinnertheme{rectangles}
\setbeamertemplate{navigation symbols}{}
\setlength{\leftmargini}{.5em}
\setlength{\leftmarginii}{1.0em}
\setlength{\leftmarginiii}{1.5em}
\setlength{\leftmarginiv}{2.0em}
\setlength{\leftmarginv}{2.5em}
\setlength{\leftmarginvi}{3.0em}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Colours
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usecolortheme[named=ACMBlue]{structure}
\usecolortheme{rose}
%\setbeamercolor{title page}{fg=ACMBlue}
\setbeamercolor{palette primary}{fg=ACMBlue}
\setbeamercolor{logo}{bg=ICPCBlue}
\setbeamercolor{frametitle}{fg=white}
\setbeamercolor{section in sidebar}{fg=ICPCRed}
%\setbeamerfont{section in sidebar}{series=\bfseries}
\setbeamercolor{block title}{bg=ICPCYellow!28!white,fg=ACMBlue}
\setbeamercolor{block body}{bg=ICPCYellow!15!white, fg=ACMBlue}
%\setbeamercolor{normal text}{fg=ACMBlue}
\newcommand{\IntroFrame}[3][icpc-horizontal]{%
\begin{frame}[plain,t]
\begin{pgfpicture}
\pgf@relevantforpicturesizefalse
\pgftransformxshift{-\Gm@lmargin}
\pgftransformyshift{5.5pt}
\DoBackground
%logo
\pgftext[at=\pgfpoint{.02\paperwidth}{-.17\paperheight},left,base]{\pgfuseimage{nwerc-logo}}
\pgftext[at=\pgfpoint{.98\paperwidth}{-.98\paperheight},right,base]{\pgfuseimage{#1}}
% Purple short bar on left
\pgfpathrectanglecorners{\pgfpoint{0pt}{-.19\paperheight}}{\pgfpoint{.15\paperwidth}{-.24\paperheight}}
\pgfsetfillcolor{ICPCBlue}
\pgfusepath{fill}
% Followed by orange bar on right
\pgfpathrectanglecorners{\pgfpoint{.15\paperwidth}{-.19\paperheight}}{\pgfpoint{\paperwidth}{-.24\paperheight}}
\pgfsetfillcolor{ICPCRed}
\pgfusepath{fill}
% A stroke down the middle
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.19\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.24\paperheight}}
\pgfsetlinewidth{3.5pt}
\pgfsetinnerlinewidth{1pt}
\pgfsetinnerstrokecolor{ICPCYellow}
\pgfsetrectcap
\pgfsetcolor{white}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.28\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.45\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetinnerlinewidth{0pt}
\pgfsetcolor{ICPCYellow}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.55\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.6\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetcolor{ICPCYellow}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.7\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.73\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetcolor{ACMBlue}
\pgfusepath{stroke}
\pgftext[at=\pgfpoint{.16\paperwidth}{-.72\paperheight},left,base]{\tiny 2013.nwerc.eu}
% \pgftext[at=\pgfpoint{.5\paperwidth}{-.4\paperheight},center,base]{\huge #2}
%\pgftext[at=\pgfpoint{.5\paperwidth}{-.6\paperheight},center,base]{\large #3}
\end{pgfpicture}
\vskip6em
\begin{center}
\huge #2\\
\end{center}
\par
\begin{center}
\large #3
\end{center}
\end{frame}
}
\newcommand\QuestionsFrame{
\begin{frame}[plain,t]
\begin{pgfpicture}
\pgf@relevantforpicturesizefalse
\pgftransformxshift{-\Gm@lmargin}
\pgftransformyshift{5.5pt}
\DoBackground
\pgftext[at=\pgfpoint{.5\paperwidth}{-.5\paperheight},center,center]{\pgfuseimage{nwerc-logo}}
\pgftext[at=\pgfpoint{.5\paperwidth}{-.3\paperheight},center,center]{\huge\structure{Questions?}}
\pgftext[at=\pgfpoint{.5\paperwidth}{-.88888888\paperheight},center,center]{\pgfuseimage{icpc-horizontal}}
\end{pgfpicture}
\end{frame}
}
\newcommand{\ProgramFrame}[1]{
\begin{frame}[c]
\begin{center}
\huge #1
\end{center}
\end{frame}
}