-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerthemeHYposter.sty
executable file
·462 lines (379 loc) · 14.3 KB
/
beamerthemeHYposter.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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
\ProvidesPackage{beamerthemeHYposter}[2012/03/09 beamerposter extension for University of Helsinki]
\RequirePackage{ifthen}
\RequirePackage{beamerposter}[2010/11/18]
% HYposter beamer theme for producing posters with University of Helsinki visual style
% Olli Wilkman 2012
% Free to adapt and modify
\mode<presentation>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set up theme options
\DeclareOption{mat}{
\colorlet{TDK}{Mat}
\renewcommand{\tdknimi}{MATEMAATTIS-LUONNONTIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{MATEMATISK-NATURVETENSKAPLIGA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF SCIENCE}
\renewcommand{\flame}{flames/flame_mat.pdf}
}
\DeclareOption{hum}{
\colorlet{TDK}{Hum}
\renewcommand{\tdknimi}{HUMANISTINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{HUMANISTISKA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF ARTS}
\renewcommand{\flame}{flames/flame_hum.pdf}
}
\DeclareOption{teo}{
\colorlet{TDK}{Teo}
\renewcommand{\tdknimi}{TEOLOGINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{TEOLOGISKA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF THEOLOGY}
\renewcommand{\flame}{flames/flame_teo.pdf}
}
\DeclareOption{oik}{
\colorlet{TDK}{Oik}
\renewcommand{\tdknimi}{OIKEUSTIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{JURIDISKA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF LAW}
\renewcommand{\flame}{flames/flame_oik.pdf}
}
\DeclareOption{med}{
\colorlet{TDK}{Med}
\renewcommand{\tdknimi}{LÄÄKETIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{MEDICINSKA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF MEDICINE}
\renewcommand{\flame}{flames/flame_laa.pdf}
}
\DeclareOption{val}{
\colorlet{TDK}{Val}
\renewcommand{\tdknimi}{VALTIOTIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{STATVETENSKAPLIGA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF SOCIAL SCIENCES}
\renewcommand{\flame}{flames/flame_val.pdf}
}
\DeclareOption{maa}{
\colorlet{TDK}{Maa}
\renewcommand{\tdknimi}{MAATALOUS-METSÄTIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{AGRIKULTUR-FORSTVETENSKAPLIGA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF AGRICULTURE AND FORESTRY}
\renewcommand{\flame}{flames/flame_maa.pdf}
}
\DeclareOption{ell}{
\colorlet{TDK}{Ell}
\renewcommand{\tdknimi}{ELÄINLÄÄKETIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{VETERINÄRMEDICINSKA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF VETERINARY MEDICINE}
\renewcommand{\flame}{flames/flame_ell.pdf}
}
\DeclareOption{bio}{
\colorlet{TDK}{Bio}
\renewcommand{\tdknimi}{BIO- JA YMPÄRISTÖTIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{BIO- OCH MILJÖVETENSKAPLIGA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF BIOLOGICAL AND ENVIRONMENTAL SCIENCES}
\renewcommand{\flame}{flames/flame_bio.pdf}
}
\DeclareOption{far}{
\colorlet{TDK}{Far}
\renewcommand{\tdknimi}{FARMASIAN TIEDEKUNTA}
\renewcommand{\tdknamn}{FARMACEUTISKA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF PHARMACY}
\renewcommand{\flame}{flames/flame_far.pdf}
}
\DeclareOption{kay}{
\colorlet{TDK}{Kay}
\renewcommand{\tdknimi}{KÄYTTÄYTYMISTIETEELLINEN TIEDEKUNTA}
\renewcommand{\tdknamn}{BETEENDEVETENSKAPLIGA FAKULTETEN}
\renewcommand{\tdkname}{FACULTY OF BEHAVIOURAL SCIENCES}
\renewcommand{\flame}{flames/flame_kay.pdf}
}
\DeclareOption{soc}{
\colorlet{TDK}{Soc}
\renewcommand{\tdknimi}{SVENSKA SOCIAL- OCH KOMMUNALHÖGSKOLAN}
\renewcommand{\tdknamn}{SWEDISH SCHOOL OF SOCIAL SCIENCE}
\renewcommand{\tdkname}{\mbox{}}
\renewcommand{\flame}{flames/flame_soc.pdf}
}
\DeclareOption{ale}{
\colorlet{TDK}{Ale}
\renewcommand{\tdknimi}{ALEKSANTERI-INSTITUUTTI}
\renewcommand{\tdknamn}{ALEXANDERINSTITUTET}
\renewcommand{\tdkname}{ALEXANTERI INSTITUTE}
}
\DeclareOption{kir}{
\colorlet{TDK}{Kir}
\renewcommand{\tdknimi}{HELSINGIN YLIOPISTON KIRJASTO}
\renewcommand{\tdknamn}{HELSINGFORS UNIVERSITETS BIBLIOTEK}
\renewcommand{\tdkname}{HELSINKI UNIVERSITY LIBRARY}
}
\DeclareOption{kie}{
\colorlet{TDK}{Kie}
\renewcommand{\tdknimi}{KIELIKESKUS}
\renewcommand{\tdknamn}{SPRÅKCENTRUM}
\renewcommand{\tdkname}{LANGUAGE CENTRE}
}
\DeclareOption{til}{
\colorlet{TDK}{Til}
\renewcommand{\tdknimi}{TILA- JA KIINTEISTÖKESKUS}
\renewcommand{\tdknamn}{LOKAL- OCH FASTIGHETSCENTER}
\renewcommand{\tdkname}{CENTER FOR PROPERTIES AND FACILITIES}
}
\DeclareOption{rur}{
\colorlet{TDK}{Rur}
\renewcommand{\tdknimi}{RURALIA-INSTITUUTTI}
\renewcommand{\tdknamn}{RURALIA-INSTITUTET}
\renewcommand{\tdkname}{RURALIA INSTITUTE}
}
\DeclareOption{atk}{
\colorlet{TDK}{Atk}
\renewcommand{\tdknimi}{TIETOTEKNIIKKAKESKUS}
\renewcommand{\tdknamn}{CENTER FÖR INFORMATIONSTEKNOLOGI}
\renewcommand{\tdkname}{CERTER FOR INTERMATION TECHNOLOGY}
}
\DeclareOption{kol}{
\colorlet{TDK}{Kol}
\renewcommand{\tdknimi}{TUTKIJAKOLLEGIUM}
\renewcommand{\tdknamn}{FORSKARKOLLEGIET}
\renewcommand{\tdkname}{HELSINKI COLLEGIUM FOR ADVANCED STUDIES}
}
\DeclareOption{avo}{
\colorlet{TDK}{Avo}
\renewcommand{\tdknimi}{AVOIN YLIOPISTO}
\renewcommand{\tdknamn}{ÖPPNA UNIVERSITETET}
\renewcommand{\tdkname}{OPEN UNIVERSITY}
}
\DeclareOption{neu}{
\colorlet{TDK}{Neu}
\renewcommand{\tdknimi}{NEUROTIETEEN TUTKIMUSKESKUS}
\renewcommand{\tdknamn}{CENTRUM FÖR NEUROVETENSKAP}
\renewcommand{\tdkname}{NEUROSCIENCE CENTER}
}
\DeclareOption{biot}{
\colorlet{TDK}{Biot}
\renewcommand{\tdknimi}{BIOTEKNIIKAN INSTITUUTTI}
\renewcommand{\tdknamn}{INTITUTET FÖR BIOTEKNOLOGI}
\renewcommand{\tdkname}{INSTITUTE OF BIOTECHNOLOGY}
}
\DeclareOption{koe}{
\colorlet{TDK}{Koe}
\renewcommand{\tdknimi}{KOE-ELÄINKESKUS}
\renewcommand{\tdknamn}{FÖRSÖKDJURSENHETEN}
\renewcommand{\tdkname}{LABORATORY ANIMAL CENTRE}
}
\DeclareOption{pal}{
\colorlet{TDK}{Pal}
\renewcommand{\tdknimi}{KOULUTUS- JA KEHITTÄMISKESKUS PALMENIA}
\renewcommand{\tdknamn}{UTBILDNINGS- OCH UTVECKLINGSCENTRET PALMENIA}
\renewcommand{\tdkname}{PALMENIA CENTRE FOR CONTINUING EDUCATION}
}
\DeclareOption{twocolumn}{
\renewcommand{\insertcolumnwidth}{0.4451\paperwidth}
}
\DeclareOption{threecolumn}{
\renewcommand{\insertcolumnwidth}{0.294\paperwidth}
}
\DeclareOption{fourcolumn}{
\renewcommand{\insertcolumnwidth}{0.22\paperwidth}
}
\selectcolormodel{rgb}
\definecolor{grey55}{RGB}{140, 140, 140} % title grey
\definecolor{Mat}{RGB}{252, 163, 17} % matemaattis-luonnontieteellinen
\definecolor{Hum}{RGB}{58, 111, 196} % humanistinen
\definecolor{Teo}{RGB}{146, 88, 200} % teologinen
\definecolor{Oik}{RGB}{140, 0, 50} % oikis
\definecolor{Med}{RGB}{0, 163, 154} % lääkis
\definecolor{Val}{RGB}{229, 5, 58} % valtsika
\definecolor{Maa}{RGB}{0, 176, 140} % lehmä- ja mehtätieteellinen
\definecolor{Ell}{RGB}{0, 158, 96} % eläinlääkis
\definecolor{Bio}{RGB}{91, 191, 33} % bio- ja ympäristö
\definecolor{Far}{RGB}{0, 189, 157} % farmasia
\definecolor{Kay}{RGB}{252, 209, 22} % käyttis
\definecolor{Soc}{RGB}{230, 51, 117} % sockom
\definecolor{Kie}{RGB}{233, 29, 85} % kielikeskus
\definecolor{Koe}{RGB}{70, 148, 157} % koe-eläin
\definecolor{Avo}{RGB}{237, 160, 79} % avoin
\definecolor{Ale}{RGB}{37, 110, 199} % aleksanteri-instituutti
\definecolor{Biot}{RGB}{155, 111, 168} % biotiede-instituutti
\definecolor{Neu}{RGB}{147, 149, 179} % neurotiedeinstituutti
\definecolor{Pal}{RGB}{255, 204, 73} % palmenia
\definecolor{Kol}{RGB}{227, 147, 4} % tutkijakollegium
\definecolor{Rur}{RGB}{142, 172, 125} % ruralia
\definecolor{Atk}{RGB}{21, 190, 240} % atk-osasto
\definecolor{Til}{RGB}{94, 160, 63} % tilakeskus
\definecolor{Kir}{RGB}{163, 175, 7} % kirjasto
\newcommand{\flame}{flames/flame.pdf}
\newcommand{\tdknimi}{\mbox{}}
\newcommand{\tdknamn}{\mbox{}}
\newcommand{\tdkname}{\mbox{}}
\colorlet{TDK}{black}
\newcommand{\titlestart}[1]{\newcommand{\inserttitlestart}{#1}}
\newcommand{\titleend}[1]{\newcommand{\inserttitleend}{#1}}
\newcommand{\insertleftcorner}{}
\newcommand{\leftcorner}[1]{\renewcommand{\insertleftcorner}{#1}}
\newcommand{\inserttitlesize}{\veryHuge}
\newcommand{\titlesize}[1]{\renewcommand{\inserttitlesize}{#1}}
\title{\inserttitlestart~\inserttitleend}
% Boolean which tells whether there is an open 'block' environment
\newboolean{inblock}
\setboolean{inblock}{false}
\newcommand{\insertcolumnwidth}{0.294\paperwidth}
% Command to start a new column, ending open block if one exists
\newcommand{\newcolumn}{\ifthenelse{\boolean{inblock}}{\end{block}}{}\column{\insertcolumnwidth}}
% Set up all environments so the user doesn't have to
\newenvironment{poster}
{
\begin{frame}[t, fragile, environment=poster]
\begin{columns}[T]\column{0.05\paperwidth}
}
{
\ifthenelse{\boolean{inblock}}{\end{block}}{}
\column{0.05\paperwidth}\end{columns}
\end{frame}
}
% Command to start a new block, ending open block if one exists
\renewcommand{\section}[1]{%
\ifthenelse{\boolean{inblock}}{\end{block}}{}
\setboolean{inblock}{true}
\begin{block}{#1}
}
% Process options given to the package
\ProcessOptions\relax
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% headline colors and fonts
\setbeamercolor{headline}{fg=black,bg=white}
\setbeamercolor{title coloured}{fg=TDK}
\setbeamercolor{title grey}{fg=grey55,bg=white}
\setbeamercolor{author in headline}{fg=black}
\setbeamercolor{institute in footline}{fg=TDK}
\setbeamercolor{logo in headline}{fg=black,bg=white}
\setbeamercolor{frame title}{fg=TDK,bg=white}
% lines
%\setbeamercolor{upper separation line head}{fg=ta2orange}
\setbeamercolor{separation line}{bg=black}
% footline colors and fonts
\setbeamercolor{footline}{fg=black,bg=white}
\setbeamerfont{footline}{size=\normalsize}
% poster background, body colors, and fonts
\setbeamercolor*{normal text}{fg=black,bg=white}
% block environment
\setbeamercolor*{block body}{bg=white,fg=black}
\setbeamercolor*{block title}{fg=TDK,bg=white}
\setbeamerfont{block title}{size=\LARGE,series=\bf}
% example environment
\setbeamercolor*{example title}{fg=TDK,bg=white}
\setbeamerfont{example title}{size=\large,series=\bf}
\setbeamercolor{alerted text}{fg=TDK}
\setbeamercolor{faculty title}{fg=grey55,bg=white}
\setbeamertemplate{itemize items}[triangle]
\setbeamercolor{itemize item}{fg=TDK,bg=white}
\setbeamercolor{enumerate item}{fg=TDK,bg=white}
\setbeamercolor{description item}{fg=TDK,bg=white}
\setbeamercolor{caption name}{fg=TDK,bg=white}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{navigation symbols}{} % no navigation on a poster
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setting up a text block
\setbeamertemplate{block begin}{
\vskip3ex%
\begin{beamercolorbox}[ht=0ex,dp=1ex,center,rounded=false,shadow=false,leftskip=0ex,rightskip=0pt plus 4em, colsep*=.75ex]{block title}%
\usebeamerfont*{block title}\MakeUppercase{\insertblocktitle}
\end{beamercolorbox}%
{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[rounded=false,shadow=false,leftskip=0cm,rightskip=0pt plus 4em,colsep*=.75ex,sep=0ex,vmode]{block body}%
\setlength{\parskip}{1.5ex}%
\ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}%
}
\setbeamertemplate{block end}{
\end{beamercolorbox}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is the title part
\setbeamertemplate{headline}{%
\leavevmode%
\begin{beamercolorbox}[wd=\paperwidth]{title and author}
\begin{columns}{b}
\begin{column}[b]{.05\paperwidth} % filler
\end{column}
% Typeset the title part differently based on orientation, this is a slightly
% quick hack, needs refinement
\if@beamerposter@portrait
% TITLE
\begin{column}[b]{0.6\paperwidth}
\vskip5ex
\includegraphics[width=0.125\paperwidth]{\flame}\\
\vskip3ex
\raggedright
\usebeamercolor{title coloured}{\color{fg}\inserttitlesize{\MakeUppercase{\inserttitlestart}}}\\
\vspace{2ex}
\usebeamercolor{title grey}{\color{fg}\inserttitlesize{\MakeUppercase{\inserttitleend}}}
\end{column}
% AUTHOR LIST
\begin{column}[b]{0.3\paperwidth}
\raggedright
\usebeamercolor{author in headline}{\color{fg}\normalsize{\insertauthor}}
\vskip5ex
\usebeamercolor{author in headline}{\color{fg}\footnotesize{\insertinstitute}}
\end{column}
% If orientation is landscape, do this:
\else
% TITLE
\begin{column}[b]{0.13\paperwidth}
\vskip5ex
\includegraphics[width=0.1\paperwidth]{\flame}\\
\end{column}
\begin{column}[b]{0.47\paperwidth}
\raggedright
\usebeamercolor{title coloured}{\color{fg}\inserttitlesize{\MakeUppercase{\inserttitlestart}}}\\
\vspace{2ex}
\usebeamercolor{title grey}{\color{fg}\inserttitlesize{\MakeUppercase{\inserttitleend}}}
\end{column}
% AUTHOR LIST
\begin{column}[b]{0.3\paperwidth}
\raggedright
\usebeamercolor{author in headline}{\color{fg}\normalsize{\insertauthor}}
\vskip5ex
\usebeamercolor{author in headline}{\color{fg}\footnotesize{\insertinstitute}}
\end{column}
\fi
\begin{column}{.05\paperwidth} % filler
\end{column}
\end{columns}
\end{beamercolorbox}
\vskip3ex
\begin{beamercolorbox}[wd=\paperwidth]{line}
\hskip0.05\paperwidth\rule{0.90\paperwidth}{2pt}
\end{beamercolorbox}
%\vskip5ex
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{footline}{
\leavevmode%
\begin{beamercolorbox}[ht=6ex, wd=\paperwidth]{footline}
\begin{columns}[b]
\begin{column}[b]{0.05\paperwidth}
\end{column}
\begin{column}[b]{.20\paperwidth}
\insertleftcorner
\end{column}
\begin{column}[b]{.70\paperwidth}
\raggedleft
\usebeamercolor{title grey}{\color{fg}\footnotesize{HELSINGIN YLIOPISTO}\\[1ex]}
\usebeamercolor{title grey}{\color{fg}\footnotesize{HELSINGFORS UNIVERSITET}\\[1ex]}
\usebeamercolor{title grey}{\color{fg}\footnotesize{UNIVERSITY OF HELSINKI}\\[1ex]}
\vskip1ex
\usebeamercolor{institute in footline}{\color{fg}\footnotesize{\tdknimi}\\[1ex]}
\usebeamercolor{institute in footline}{\color{fg}\footnotesize{\tdknamn}\\[1ex]}
\usebeamercolor{institute in footline}{\color{fg}\footnotesize{\tdkname}\\[1ex]}
\end{column}
\begin{column}{.05\paperwidth}
\end{column}
\end{columns}
\end{beamercolorbox}
\vskip2ex%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<all>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables:
%%% mode: latex
%%% TeX-PDF-mode: t
%%% TeX-master: "poster"
%%% End: