-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemecpbgposter.sty
208 lines (201 loc) · 6.71 KB
/
beamerthemecpbgposter.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
%==============================================================================
% beamer style for posters of the
% Computatinal Physics and Biophysics Group
%
% version 1.03
% - added required packages for nice fonts
% - added tikz package
% version 1.02
% - added jblue, the jacobs blue
% - use jblue as standart color for borders and boxes
% version 1.01
% - fix logo width for landscape posters
% version 1.00
% - inital release
% =============================================================================
\ProvidesPackage{beamerthemecpbgposter}
\RequirePackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,calc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage{textcomp}
\RequirePackage{amsmath,amssymb}
\usefonttheme{professionalfonts}
\newlength{\inboxwd}
\newlength{\iinboxwd}
\newlength{\inboxrule}
\newlength{\logocolw}
\newcommand{\makeruleinbox}
{{\usebeamercolor[bg]{block alerted title}\centering\hspace*{-0.7cm}
\rule{\inboxrule}{0.5cm}}
}
%this is needed to get the block text justified
\usepackage{ragged2e}
%define some nice colors
\definecolor{lgreen} {RGB}{180,210,100}
\definecolor{dblue} {RGB}{20,46,77}
\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}{20,46,77}
\definecolor{dgreen} {RGB}{20,46,77}
\definecolor{nblue} {RGB}{20,46,77}
\definecolor{jblue} {RGB}{20,46,77}
%set the basic colors
\setbeamercolor{palette primary} {fg=black,bg=white}
\setbeamercolor{palette secondary} {fg=black,bg=white}
\setbeamercolor{palette tertiary} {bg=jblue,fg=white}
\setbeamercolor{palette quaternary}{fg=black,bg=white}
\setbeamercolor{structure}{fg=jblue}
\setbeamercolor{titlelike} {bg=jblue,fg=white}
\setbeamercolor{frametitle} {bg=jblue!10,fg=jblue}
\setbeamercolor{cboxb}{fg=black,bg=jblue}
\setbeamercolor{cboxr}{fg=black,bg=red}
%set colors for itemize/enumerate
\setbeamercolor{item}{fg=ngreen}
\setbeamercolor{item projected}{fg=white,bg=ngreen}
%set colors for blocks
\setbeamercolor{block title}{fg=ngreen,bg=white}
\setbeamercolor{block body}{fg=black,bg=white}
%set colors for alerted blocks (with frame)
\setbeamercolor{block alerted title}{fg=white,bg=jblue}
\setbeamercolor{block alerted body}{fg=black,bg=jblue!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}
%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}
%\setbeamerfont{bibliography item}{size=\tiny}
%\setbeamerfont{bibliography entry author}{size=\tiny}
%extra settings for landscape
\setlength{\logocolw}{.14142\paperwidth}
\makeatletter
\ifportrait
\setlength{\logocolw}{.2\paperwidth}
\fi
\makeatother
%==============================================================================
% build the poster title
%==============================================================================
\setbeamertemplate{headline}{
\leavevmode
\begin{columns}
%jacobs logo column
\begin{column}{0.15\linewidth}
\begin{center}
\includegraphics[width=0.9\linewidth]{logo}
\end{center}
\end{column}
%title column
\begin{column}{.7\linewidth}
\vskip2cm
\centering
\usebeamercolor{title in headline}{\color{fg}
\textbf{\huge{\inserttitle}}\\[1ex]}
\usebeamercolor{author in headline}{\color{fg}
\large{\insertauthor}\\[1ex]}
\usebeamercolor{institute in headline}{\color{fg}
\large{\insertinstitute}\\[1ex]}
\usebeamercolor{date in headline}{\color{fg}
\large{\insertdate}\\[1ex]}
\vskip2cm
\end{column}
\begin{column}{.15\linewidth}
\begin{center}
\includegraphics[width=0.9\linewidth]{logo2}
\end{center}
\end{column}
\vspace{1cm}
\end{columns}
%\end{beamercolorbox}
\begin{beamercolorbox}[colsep=0.5cm]{cboxb}
\end{beamercolorbox}
}
\setbeamertemplate{background}
{
\begin{tikzpicture}[remember picture,overlay]
% \fill [jblue]
% (current page.south west) rectangle (current page.north east);
\draw [line width=2cm,rounded corners=1.5cm, jblue]
(current page.south west) rectangle (current page.north east);
% \fill [white,rounded corners=2cm, xshift=1cm, yshift=1cm]
% (current page.south west) rectangle (current page.north east);
\end{tikzpicture}
}
% block
\setbeamertemplate{block begin}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=0ex,dp={2ex},center]{block title}
% \begin{center}
\vskip-0.4cm
\usebeamerfont{block title}\large\insertblocktitle
% {\parskip0pt\par}
% \end{center}
\begin{flushleft}
\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}%
%{\vskip1ex}\vbox{}%
\justifying
}
\setbeamertemplate{block end}
{
\end{beamercolorbox}
\vskip\smallskipamount
}
% alertblock (with frame)
\setbeamertemplate{block alerted begin}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[sep=0ex,rounded=true,center,dp={2ex}]{block alerted title}
\vskip-0.4cm
\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
}