beamerthemeLasNQposter.sty 7.21 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
29
30
31
32
33
34
35
36
37
38
%==============================================================================
% 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

\usecaptiontemplate{\small\structure{\insertcaptionname~\insertcaptionnumber: }\insertcaption} % A fix for figure numbering

%-----------------------------------------------------------
% 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)
62
63
\setbeamercolor{block alerted title}{fg=redUHH,bg=blueUHH!30}
% \setbeamercolor{block alerted title}{fg=themecolor,bg=white}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
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
\setbeamercolor{block alerted body}{fg=blackUHH,bg=blackUHH!8}
\usepackage{fontspec}
% 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}
\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}

% 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
92
\newlength{\sidemargin}
93
\setlength{\sidemargin}{.05\textwidth}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
94
95
96
\makeatletter
\makeatother

97
98
% TODO better definition
\usebackgroundtemplate{%
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
99
  \vbox to 10\sidemargin{\vfill\includegraphics[width=\paperwidth, trim={0 1.6cm 5cm 6cm}, clip]{\background}}%
100
101
}
\setbeamercolor{text}{bg=blackUHH}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
102

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
103
104
105
106
107
108
109
110
111
%==============================================================================
% 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
112
   \begin{column}{\sidemargin}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
113
   \end{column}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
114
   \begin{column}{0.9\textwidth}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
115
116
117
118
    \vskip1.4\sidemargin
    % UHH logo
    \includegraphics[height=1.7\sidemargin]{uhh.pdf}
    \hfill
119
    \includegraphics[height=1.7\sidemargin]{ilp-logo.pdf}\\[2\sidemargin]
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
120
    \raggedright
121
    \usebeamercolor{title in headline}{\color{whiteUHH}\Huge{\textsc{\textbf{\inserttitle}}}\\[1ex] \par}
122
123
124
125
    \if\insertsubtitle ''
      {\color{whiteUHH}
      \hspace*{-\sidemargin}\noindent\rule{.5\paperwidth}{5pt}
      }
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
126
      \vskip2.5cm
127
128
129
130
131
    \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
132
133
    \vskip1cm
   \end{column}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
134
   \begin{column}{\sidemargin}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
135
136
137
138
139
140
   \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
141
 \vspace*{1cm}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
142
143
}

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
144
145
146
147
% \setbeamertemplate{footer}{
%     \usebeamercolor{author in headline}{\color{themecolor}\Large{\insertauthor}\\[1ex]}
%     \usebeamercolor{institute in headline}{\color{themecolor}\normalsize{\insertinstitute}}
% }
148

Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
149
150
151
% Block definition
\setbeamertemplate{block begin}
{
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
152
  \setlength{\textwidth}{\linewidth}%
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
153
154
  \par\vskip\medskipamount
  \begin{beamercolorbox}[colsep*=0ex,dp={2ex},left]{block title}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
155
    \vskip0cm
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
156
    \usebeamerfont{block title}\Large\insertblocktitle
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
157
158
159
160
% 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
161
162
163
164
165
166
167
168

  \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
169
  % \vskip-0.4cm
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
170
171
172
  
  \begin{beamercolorbox}[colsep*=0ex,vmode]{block body}
  \vspace{-0.1cm}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
173
  % {\rule{\textwidth}{0.4pt}}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
174
175
176
177
178
179
  \justifying
}

\setbeamertemplate{block end}
{
  \end{beamercolorbox}
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
180
  \vskip\medskipamount
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
181
182
183
184
185
186
}


% Alert block definition (with frame)
\setbeamertemplate{block alerted begin}
{
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
187
  \setlength{\textwidth}{\linewidth}%
Christian Darsow-Fromm's avatar
Christian Darsow-Fromm committed
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
  \par\vskip\medskipamount
  \begin{beamercolorbox}[sep=0ex,rounded=true,left,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
}