beamerthemeLasNQposter.sty 7.42 KB
Newer Older
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
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
%==============================================================================
% 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 (nathaniel@nathanieljohnston.com) in August 2009
% =============================================================================

\ProvidesPackage{beamerthemeLasNQposter}
\RequirePackage{tikz}		% for drawing the nice rounded boxes
\usetikzlibrary{arrows,backgrounds}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage{textcomp}
\RequirePackage{amsmath,amssymb}
\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

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
29
\usecaptiontemplate{\small\structure{\insertcaptionname~\insertcaptionnumber:}\ \insertcaption} % A fix for figure numbering
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
30
31
32
33
34
35
36
37
38

%-----------------------------------------------------------
% Define a whole bunch of custom colours and fonts
%-----------------------------------------------------------

\definecolor{redUHH}{cmyk}{0,1,1,0}
\definecolor{blueUHH}{cmyk}{.85,.15,.05,0}
\definecolor{blackUHH}{cmyk}{0,0,0,1}
\definecolor{stonegrayUHH}{cmyk}{.45,.11,.11,.91}
39
\definecolor{whiteUHH}{cmyk}{0,0,0,0}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57


% set the basic colors
\setbeamercolor{palette primary}   {fg=black,bg=white}
\setbeamercolor{palette secondary} {fg=black,bg=white}
\setbeamercolor{palette tertiary}  {bg=blueUHH,fg=white}
\setbeamercolor{palette quaternary}{fg=black,bg=white}
\setbeamercolor{structure}{fg=stonegrayUHH}
\setbeamercolor{titlelike}         {bg=blueUHH,fg=white}
\setbeamercolor{frametitle}        {bg=blueUHH!10,fg=blueUHH}
\setbeamercolor{cboxb}{fg=black,bg=blueUHH}
\setbeamercolor{cboxr}{fg=black,bg=red}

% set colors for itemize/enumerate
\setbeamercolor{item}{fg=blueUHH}
\setbeamercolor{item projected}{fg=white,bg=themecolor}

% set colors for blocks
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
58
59
\setbeamercolor{block title}{fg=redUHH,bg=}
\setbeamercolor{block body}{fg=blackUHH,bg=}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
60
61

% set colors for alerted blocks (blocks with frame)
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
62
\setbeamercolor{block alerted title}{fg=redUHH,bg=blueUHH!20}
63
% \setbeamercolor{block alerted title}{fg=themecolor,bg=white}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
64
\setbeamercolor{block alerted body}{fg=blackUHH,bg=}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
65
66
67
\usepackage{fontspec}
% set the fonts
\setbeamerfont{section in head/foot}{series=\bfseries}
Christian Darsow-Fromm's avatar
subbox    
Christian Darsow-Fromm committed
68
69
\setbeamerfont{block title}{series=\scshape,size=\Large}
\setbeamerfont{block alerted title}{series=\scshape,size=\Large}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamerfont{frametitle}{size=\large}
\setbeamerfont{block body}{series=\rmfamily}
\setbeamerfont{block body}{size=\normalsize}

% 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=blackUHH,bg=white}
\setbeamercolor{bibliography entry author}{fg=blackUHH,bg=white}
\setbeamercolor{bibliography item}{fg=blackUHH,bg=white}

Christian Darsow-Fromm's avatar
subbox    
Christian Darsow-Fromm committed
88
89
90
91
92
93
% subblock
\newenvironment<>{subblock}[1]{%
  \setbeamercolor{block title}{fg=redUHH,bg=}%
  \setbeamerfont{block title}{series=\bfseries,size=\large}
  \begin{block}#2{#1}}{\end{block}}

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
94
95
96
97
% define some length variables that are used by the template
\newlength{\inboxwd}
\newlength{\iinboxwd}
\newlength{\inboxrule}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
98
\newlength{\sidemargin}
99
\setlength{\sidemargin}{.05\textwidth}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
100
101
102
\makeatletter
\makeatother

103
104
% TODO better definition
\usebackgroundtemplate{%
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
105
  \vbox to 10\sidemargin{\vfill\includegraphics[width=\paperwidth, trim={0 1.6cm 5cm 6cm}, clip]{\background}}%
106
107
}
\setbeamercolor{text}{bg=blackUHH}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
108

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
109
110
111
112
113
114
115
116
117
%==============================================================================
% build the poster title
%==============================================================================
%\makeatletter 
%\newcommand\semiHuge{\@setfontsize\semiHuge{67.8}{84.6}}
%\makeatother
\setbeamertemplate{headline}{
 \leavevmode
  \begin{columns}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
118
   \begin{column}{\sidemargin}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
119
   \end{column}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
120
   \begin{column}{0.9\textwidth}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
121
122
123
124
    \vskip1.4\sidemargin
    % UHH logo
    \includegraphics[height=1.7\sidemargin]{uhh.pdf}
    \hfill
125
    \includegraphics[height=1.7\sidemargin]{ilp-logo.pdf}\\[2\sidemargin]
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
126
    \raggedright
127
    \usebeamercolor{title in headline}{\color{whiteUHH}\Huge{\textsc{\textbf{\inserttitle}}}\\[1ex] \par}
128
129
130
131
    \if\insertsubtitle ''
      {\color{whiteUHH}
      \hspace*{-\sidemargin}\noindent\rule{.5\paperwidth}{5pt}
      }
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
132
      \vskip2.5cm
133
134
135
136
137
    \else
      \usebeamercolor{title in headline}{\color{whiteUHH}\Large{\insertsubtitle}\\[1.5ex] \par}
    \fi
    % \usebeamercolor{author in headline}{\color{themecolor}\Large{\insertauthor}\\[1ex]}
    % \usebeamercolor{institute in headline}{\color{themecolor}\normalsize{\insertinstitute}}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
138
139
    \vskip1cm
   \end{column}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
140
   \begin{column}{\sidemargin}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
141
142
143
144
145
146
   \end{column}
   %\vspace{1cm}
  \end{columns}
 %\vspace{0.5in}
 %\hspace{0.5in}\begin{beamercolorbox}[wd=35in,colsep=0.15cm]{cboxb}\end{beamercolorbox}
 %\vspace{0.1in}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
147
 \vspace*{1cm}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
148
149
}

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
150
151
152
153
% \setbeamertemplate{footer}{
%     \usebeamercolor{author in headline}{\color{themecolor}\Large{\insertauthor}\\[1ex]}
%     \usebeamercolor{institute in headline}{\color{themecolor}\normalsize{\insertinstitute}}
% }
154

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
155
156
157
% Block definition
\setbeamertemplate{block begin}
{
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
158
  \setlength{\textwidth}{\linewidth}%
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
159
160
  \par\vskip\medskipamount
  \begin{beamercolorbox}[colsep*=0ex,dp={2ex},left]{block title}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
161
    \vskip0cm
Christian Darsow-Fromm's avatar
subbox    
Christian Darsow-Fromm committed
162
    \usebeamerfont{block title}\textbf{\insertblocktitle}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
163
164
165
166
% Uncomment the next two lines to add a line below the box title
  %  \vskip-1.5cm
 	% {\rule{\textwidth}{0.4pt}}
  %   \vskip0.5cm
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
167
168
169
170
171
172
173
174

  \end{beamercolorbox}
  {\parskip0pt\par}
  \ifbeamercolorempty[bg]{block title}
  {}
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}

    \usebeamerfont{block body}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
175
  % \vskip-0.4cm
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
176
177
178
  
  \begin{beamercolorbox}[colsep*=0ex,vmode]{block body}
  \vspace{-0.1cm}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
179
  % {\rule{\textwidth}{0.4pt}}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
180
181
182
183
184
185
  \justifying
}

\setbeamertemplate{block end}
{
  \end{beamercolorbox}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
186
  \vskip\medskipamount
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
187
188
189
190
191
192
}


% Alert block definition (with frame)
\setbeamertemplate{block alerted begin}
{
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
193
  \setlength{\textwidth}{\linewidth}%
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
194
195
196
  \par\vskip\medskipamount
  \begin{beamercolorbox}[sep=0ex,rounded=true,left,dp={2ex}]{block alerted title}
    \vskip0.01cm
Christian Darsow-Fromm's avatar
subbox    
Christian Darsow-Fromm committed
197
    \hskip.7cm\usebeamerfont{block title}\bfseries\insertblocktitle
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
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
  \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
}