-
Notifications
You must be signed in to change notification settings - Fork 2
/
beamerthemeconfposter.sty
executable file
·286 lines (247 loc) · 13.4 KB
/
beamerthemeconfposter.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
%==============================================================================
% Beamer style for the poster template posted at
% http://www.nathanieljohnston.com/2009/08/latex-poster-template/
%
% Created by the Computational Physics and Biophysics Group at Jacobs University
% https://teamwork.jacobs-university.de:8443/confluence/display/CoPandBiG/LaTeX+Poster
% Modified by Nathaniel Johnston ([email protected]) in August 2009
% =============================================================================
\ProvidesPackage{beamerthemeconfposter}
\RequirePackage{tikz} % for drawing the nice rounded boxes
\usetikzlibrary{arrows,backgrounds}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\usepackage{exscale}
\RequirePackage{textcomp}
\RequirePackage{graphicx}
\RequirePackage{amsmath,amssymb}
\RequirePackage{eso-pic}
\usefonttheme{professionalfonts}
\newcommand{\makeruleinbox}{{\usebeamercolor[bg]{block alerted title}\centering\hspace*{-0.7cm}\rule{\inboxrule}{0.5cm}}}
\usepackage{ragged2e}
% Spacing before and inside list environments to add white space before lists and between items inside lists
\makeatletter
\def\@listi{\leftmargin\leftmarginii
\topsep 1ex % Spacing before lists
\parsep 0\p@ \@plus\p@
\itemsep 6pt} % Spacing between items
\makeatother
\usecaptiontemplate{\small\structure{\insertcaptionname~\insertcaptionnumber: }\insertcaption} % A fix for figure numbering
%-----------------------------------------------------------
% Define a whole bunch of custom colours and fonts
%-----------------------------------------------------------
\definecolor{lgreen} {RGB}{180,210,100}
\definecolor{dblue} {RGB}{20,66,129}
\definecolor{ddblue} {RGB}{11,36,69}
\definecolor{lred} {RGB}{220,0,0}
\definecolor{nred} {RGB}{224,0,0}
\definecolor{norange}{RGB}{230,120,20}
\definecolor{nyellow}{RGB}{255,221,0}
\definecolor{ngreen} {RGB}{98,158,31}
\definecolor{dgreen} {RGB}{78,138,21}
\definecolor{nblue} {RGB}{28,130,185}
\definecolor{jblue} {RGB}{20,50,100}
%----------------------------------------------------------------------------
% More colours added due to conflict with Colordvi package
% Addition done by Nishan Mudalige ([email protected]) in April 2011
%----------------------------------------------------------------------------
\definecolor{GreenYellow} {RGB}{217, 229, 6} % GreenYellow Approximate PANTONE 388
\definecolor{Yellow} {RGB}{254, 223, 0} % Yellow Approximate PANTONE YELLOW
\definecolor{Goldenrod} {RGB}{249, 214, 22} % Goldenrod Approximate PANTONE 109
\definecolor{Dandelion} {RGB}{253, 200, 47} % Dandelion Approximate PANTONE 123
\definecolor{Apricot} {RGB}{255, 170, 123} % Apricot Approximate PANTONE 1565
\definecolor{Peach} {RGB}{255, 127, 69} % Peach Approximate PANTONE 164
\definecolor{Melon} {RGB}{255, 129, 141} % Melon Approximate PANTONE 177
\definecolor{YellowOrange} {RGB}{240, 171, 0} % YellowOrange Approximate PANTONE 130
\definecolor{Orange} {RGB}{255, 88, 0} % Orange Approximate PANTONE ORANGE-021
\definecolor{BurntOrange} {RGB}{199, 98, 43} % BurntOrange Approximate PANTONE 388
\definecolor{Bittersweet} {RGB}{189, 79, 25} % Bittersweet Approximate PANTONE 167
\definecolor{RedOrange} {RGB}{222, 56, 49} % RedOrange Approximate PANTONE 179
\definecolor{Mahogany} {RGB}{152, 50, 34} % Mahogany Approximate PANTONE 484
\definecolor{Maroon} {RGB}{152, 30, 50} % Maroon Approximate PANTONE 201
\definecolor{BrickRed} {RGB}{170, 39, 47} % BrickRed Approximate PANTONE 1805
\definecolor{Red} {RGB}{255, 0, 0} % Red Approx PANTONE LUMINOUS VIVID RED
\definecolor{BrilliantRed} {RGB}{237, 41, 57} % Red VERY-Approx PANTONE RED
\definecolor{OrangeRed} {RGB}{231, 58, 0} % OrangeRed No PANTONE match (TRIED PANTONE VIVID ORANGE RED)
\definecolor{RubineRed} {RGB}{202, 0, 93} % RubineRed Approximate PANTONE RUBINE-RED
\definecolor{WildStrawberry} {RGB}{203, 0, 68} % WildStrawberry Approximate PANTONE 206
\definecolor{Salmon} {RGB}{250, 147, 171} % Salmon Approximate PANTONE 183
\definecolor{CarnationPink} {RGB}{226, 110, 178} % CarnationPink Approximate PANTONE 218
\definecolor{Magenta} {RGB}{255, 0, 144} % Magenta Approximate PANTONE PROCESS-MAGENTA
\definecolor{VioletRed} {RGB}{215, 31, 133} % VioletRed Approximate PANTONE 219
\definecolor{Rhodamine} {RGB}{224, 17, 157} % Rhodamine Approximate PANTONE RHODAMINE-RED
\definecolor{Mulberry} {RGB}{163, 26, 126} % Mulberry Approximate PANTONE 241
\definecolor{RedViolet} {RGB}{161, 0, 107} % RedViolet Approximate PANTONE 234
\definecolor{Fuchsia} {RGB}{155, 24, 137} % Fuchsia Approximate PANTONE 248
\definecolor{Lavender} {RGB}{240, 146, 205} % Lavender Approximate PANTONE 223
\definecolor{Thistle} {RGB}{222, 129, 211} % Thistle Approximate PANTONE 245
\definecolor{Orchid} {RGB}{201, 102, 205} % Orchid Approximate PANTONE 252
\definecolor{DarkOrchid} {RGB}{153, 50, 204} % DarkOrchid No PANTONE match
\definecolor{Purple} {RGB}{182, 52, 187} % Purple Approximate PANTONE PURPLE
\definecolor{Plum} {RGB}{79, 50, 76} % Plum VERY-Approx PANTONE 518
\definecolor{Violet} {RGB}{75, 8, 161} % Violet Approximate PANTONE VIOLET
\definecolor{RoyalPurple} {RGB}{82, 35, 152} % RoyalPurple Approximate PANTONE 267
\definecolor{BlueViolet} {RGB}{33, 7, 106} % BlueViolet Approximate PANTONE 2755
\definecolor{Periwinkle} {RGB}{136, 132, 213} % Periwinkle Approximate PANTONE 2715
\definecolor{CadetBlue} {RGB}{95, 158, 160} % CadetBlue Approximate PANTONE (534+535)/2, Could not find get on my own so used PANTONE-CADET BLUE
\definecolor{CornflowerBlue} {RGB}{99, 177, 229} % CornflowerBlue Approximate PANTONE 292
\definecolor{MidnightBlue} {RGB}{0, 65, 101} % MidnightBlue Approximate PANTONE 302
\definecolor{NavyBlue} {RGB}{0, 70, 173} % NavyBlue Approximate PANTONE 293
\definecolor{RoyalBlue} {RGB}{0, 35, 102} % RoyalBlue No PANTONE match
\definecolor{Blue} {RGB}{0, 24, 168} % Blue Approximate PANTONE BLUE-072
\definecolor{Cerulean} {RGB}{0, 122, 201} % Cerulean Approximate PANTONE 3005
\definecolor{Cyan} {RGB}{0, 159, 218} % Cyan Approximate PANTONE PROCESS-CYAN
\definecolor{ProcessBlue} {RGB}{0, 136, 206} % ProcessBlue Approximate PANTONE PROCESS-BLUE
\definecolor{SkyBlue} {RGB}{91, 198, 232} % SkyBlue Approximate PANTONE 2985
\definecolor{Turquoise} {RGB}{0, 255, 239} % Turquoise Approximate PANTONE (312+313)/2, Could not find get on my own so used PANTONE-TURQUOISE
\definecolor{TealBlue} {RGB}{0, 124, 146} % TealBlue Approximate PANTONE 3145
\definecolor{Aquamarine} {RGB}{0, 148, 179} % Aquamarine Approximate PANTONE 3135
\definecolor{BlueGreen} {RGB}{0, 154, 166} % BlueGreen Approximate PANTONE 320
\definecolor{Emerald} {RGB}{80, 200, 120} % Emerald No PANTONE match
\definecolor{JungleGreen} {RGB}{0, 115, 99} % JungleGreen Approximate PANTONE 328
\definecolor{SeaGreen} {RGB}{0, 176, 146} % SeaGreen Approximate PANTONE 3268
\definecolor{Green} {RGB}{0, 173, 131} % Green VERY-Approx PANTONE GREEN
\definecolor{ForestGreen} {RGB}{0, 105, 60} % ForestGreen Approximate PANTONE 349
\definecolor{PineGreen} {RGB}{0, 98, 101} % PineGreen Approximate PANTONE 323
\definecolor{LimeGreen} {RGB}{50, 205, 50} % LimeGreen No PANTONE match
\definecolor{YellowGreen} {RGB}{146, 212, 0} % YellowGreen Approximate PANTONE 375
\definecolor{SpringGreen} {RGB}{201, 221, 3} % SpringGreen Approximate PANTONE 381
\definecolor{OliveGreen} {RGB}{135, 136, 0} % OliveGreen Approximate PANTONE 582
\definecolor{RawSienna} {RGB}{149, 82, 20} % RawSienna Approximate PANTONE 154
\definecolor{Sepia} {RGB}{98, 60, 27} % Sepia Approximate PANTONE 161
\definecolor{Brown} {RGB}{134, 67, 30} % Brown Approximate PANTONE 1615
\definecolor{Tan} {RGB}{210, 180, 140} % Tan No PANTONE match
\definecolor{Gray} {RGB}{139, 141, 142} % Gray Approximate PANTONE COOL-GRAY-8
\definecolor{Black} {RGB}{30, 30, 30} % Black Approximate PANTONE PROCESS-BLACK
\definecolor{White} {RGB}{255, 255, 255} % White No PANTONE match
\definecolor{KUred} {RGB}{114, 0, 18} % Gray Approximate PANTONE COOL-GRAY-8
% set the basic colors
\setbeamercolor{palette primary} {fg=black,bg=white}
\setbeamercolor{palette secondary} {fg=black,bg=white}
\setbeamercolor{palette tertiary} {bg=KUred,fg=white}
\setbeamercolor{palette quaternary}{fg=black,bg=white}
\setbeamercolor{structure}{fg=KUred}
\setbeamercolor{titlelike} {bg=KUred,fg=white}
\setbeamercolor{frametitle} {bg=KUred!10,fg=KUred}
\setbeamercolor{cboxb}{fg=black,bg=KUred}
\setbeamercolor{cboxr}{fg=black,bg=red}
% set colors for itemize/enumerate
\setbeamercolor{item}{fg=KUred}
\setbeamercolor{item projected}{fg=white,bg=KUred}
% set colors for blocks
\setbeamercolor{block title}{fg=ngreen,bg=white}
\setbeamercolor{block body}{fg=black,bg=white}
% set colors for alerted blocks (blocks with frame)
\setbeamercolor{block alerted title}{fg=white,bg=KUred}
\setbeamercolor{block alerted body}{fg=black,bg=KUred!10}
% set the fonts
\setbeamerfont{section in head/foot}{series=\bfseries}
\setbeamerfont{block title}{series=\bfseries}
\setbeamerfont{block alerted title}{series=\bfseries}
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamerfont{frametitle}{size=\Large}
\setbeamerfont{block body}{series=\rmfamily}
% set some beamer theme options
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true]
\setbeamertemplate{sections/subsections in toc}[square]
\setbeamertemplate{items}[circle]
\setbeamertemplate{blocks}[width=0.0]
\beamertemplatenavigationsymbolsempty
% set bibliography style
\setbeamertemplate{bibliography item}[text]
\setbeamercolor{bibliography item}{fg=black,bg=white}
\setbeamercolor{bibliography entry author}{fg=black,bg=white}
\setbeamercolor{bibliography item}{fg=black,bg=white}
% define some length variables that are used by the template
\newlength{\inboxwd}
\newlength{\iinboxwd}
\newlength{\inboxrule}
\makeatletter
\makeatother
%==============================================================================
% build the poster title
%==============================================================================
\setbeamertemplate{headline}{
\leavevmode
\makebox[0pt][l]{%
\raisebox{-\totalheight}[3cm][0pt]{%
{\hspace{-3cm}\includegraphics[width=\paperwidth]{ku_header}}}}%
\begin{columns}[t,totalwidth=\textwidth]
\begin{column}{\linewidth}
\vskip2cm
\hspace{-.5cm}%
\includegraphics[width=.5\paperwidth]{ku_header_text}\\[2ex]%
% \usebeamercolor{author in headline}{\color{fg}\Large{University of Copenhagen}\\[1ex]}
% \usebeamercolor{author in headline}{\color{gray}\fontfamily{Times New Roman}\selectfont\bf\large{\textbf{DIKU, Department of Computer Science}}\\[1ex]}
\usebeamercolor{author in headline}{\color{gray}\bf\large{DIKU, Department of Computer Science}\\[1ex]}
\vskip4cm
% \centering
\usebeamercolor{title in headline}{\color{fg}\Huge{\textbf{\inserttitle}}\\[0.5ex]}
\usebeamercolor{author in headline}{\color{fg}\Large{\insertauthor}\\}
\usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1ex]}
% \vskip1cm
\end{column}
% \vspace{1cm}
\end{columns}
\vspace{0.1in}
}
% Block definition
\setbeamertemplate{block begin}
{
\par\vskip\medskipamount
\begin{beamercolorbox}[colsep*=0ex,dp={2ex},center]{block title}
\vspace{-6cm}
\begin{flushleft}
\usebeamerfont{block title}\large\insertblocktitle
\vskip-1cm
% \begin{tikzpicture}[remember picture,overlay]
% \shade [inner color=gray,outer color=white]
% (0,0) rectangle (\textwidth,0.3cm);
% \end{tikzpicture}
\end{flushleft}
\end{beamercolorbox}
{\parskip0pt\par}
\ifbeamercolorempty[bg]{block title}
{}
{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}
\usebeamerfont{block body}
\vskip-0.5cm
\begin{beamercolorbox}[colsep*=0ex,vmode]{block body}
\justifying
}
\setbeamertemplate{block end}
{
\end{beamercolorbox}
\vskip\smallskipamount
}
% Alert block definition (with frame)
\setbeamertemplate{block alerted begin}
{
\par\vskip\medskipamount
\begin{beamercolorbox}[sep=0ex,rounded=true,center,dp={2ex}]{block alerted title}
\vskip0.01cm
\usebeamerfont{block title}\large\insertblocktitle
\end{beamercolorbox}
{\parskip0pt\par}
\usebeamerfont{block body}
\vskip-0.8cm
\begin{beamercolorbox}[sep=0.5cm, rounded=true,center]{block alerted title}
\setlength{\inboxwd}{\linewidth}
\addtolength{\inboxwd}{-1cm}
\begin{beamercolorbox}[rounded=true,wd={\inboxwd},center]{block alerted body}
\setlength{\iinboxwd}{\inboxwd}
\setlength{\inboxrule}{\inboxwd}
\addtolength{\iinboxwd}{-0.5cm}
\addtolength{\inboxrule}{0.5cm}
\begin{center}
\begin{minipage}{\iinboxwd}
\justifying
}
\setbeamertemplate{block alerted end}
{
\end{minipage}
\end{center}
\end{beamercolorbox}
\end{beamercolorbox}
\vskip\smallskipamount
}