Commit 22b396a8 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros

New version of the poster template.

This version has a number of new features:
- Support for verbatim environments.
- Better support for footnotes.
- Support for more then two columns in a coloured block.
- Better handling of missing titles of coloured blocks.
- Cleaner template.
parent 5fa6bb8d
......@@ -17,7 +17,7 @@
% For multi column minipages.
\usepackage{multirow}
\usepackage{multicol}
\setlength{\columnsep}{3cm}
\setlength{\columnsep}{2cm}
\newcommand{\contentHeight}{100cm}
% For single / multi column blocks.
......@@ -43,22 +43,31 @@
\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}
% Custom colours (use the gimp colour picker and divide by 255).
\definecolor{LUMCBlue}{rgb}{0, 0.11372, 0.38039}
\definecolor{ULBlue}{rgb}{0.06274, 0.07843, 0.38823}
\definecolor{Background}{rgb}{0.85098, 0.92549, 0.98431}
\definecolor{WhiteBg}{rgb}{1, 1, 1}
\definecolor{GreenBg}{rgb}{0.69803, 0.94509, 0.49803}
\definecolor{YellowBg}{rgb}{0.99215, 0.98431, 0.50980}
\definecolor{BlueBg}{rgb}{0.69411, 0.85098, 0.98823}
\definecolor{SalmonBg}{rgb}{1, 0.94901, 0.92156}
\definecolor{LUMCBlueRGB}{rgb}{0, 0.11372, 0.38039}
\definecolor{ULBlueRGB}{rgb}{0.06274, 0.07843, 0.38823}
\definecolor{BackgroundRGB}{rgb}{0.85098, 0.92549, 0.98431}
\definecolor{WhiteBgRGB}{rgb}{1, 1, 1}
\definecolor{GreenBgRGB}{rgb}{0.69803, 0.94509, 0.49803}
\definecolor{YellowBgRGB}{rgb}{0.99215, 0.98431, 0.50980}
\definecolor{BlueBgRGB}{rgb}{0.69411, 0.85098, 0.98823}
\definecolor{SalmonBgRGB}{rgb}{1, 0.94901, 0.92156}
\setbeamercolor{Background}{fg=LUMCBlueRGB, bg=BackgroundRGB}
\setbeamercolor{WhiteBg}{fg=LUMCBlueRGB, bg=WhiteBgRGB}
\setbeamercolor{GreenBg}{fg=LUMCBlueRGB, bg=GreenBgRGB}
\setbeamercolor{YellowBg}{fg=LUMCBlueRGB, bg=YellowBgRGB}
\setbeamercolor{BlueBg}{fg=LUMCBlueRGB, bg=BlueBgRGB}
\setbeamercolor{SalmonBg}{fg=LUMCBlueRGB, bg=SalmonBgRGB}
% Disable the navigation bar.
\usenavigationsymbolstemplate{}
% Set default colours.
\setbeamercolor{structure}{fg=LUMCBlue}
\setbeamercolor{normal text}{fg=LUMCBlue, bg=Background}
\setbeamercolor{frametitle}{fg=white}
\setbeamercolor{structure}{fg=LUMCBlueRGB}
\setbeamercolor{normal text}{fg=LUMCBlueRGB, bg=BackgroundRGB}
\setbeamercolor{frametitle}{fg=white, bg=LUMCBlueRGB}
\setbeamercolor{footer}{bg=ULBlueRGB}
% Change the bullets in the itemize environment.
\setbeamertemplate{itemize items}[circle]
......@@ -99,7 +108,7 @@
numbers=left,
numbersep=-1em,
numberstyle=\tiny
}
}
%
% General layout of the poster.
......@@ -107,7 +116,7 @@
% The header of the poster
\setbeamertemplate{headline}{
\colorbox{LUMCBlue}{
\begin{beamercolorbox}{frametitle}
\begin{tabularx}{0.993\paperwidth}{ll}
\raisebox{2cm}{\phantom{.}}\\
\hspace{2cm} \includegraphics[width=8cm]{lumc_logo} &
......@@ -127,24 +136,24 @@
}\\
\raisebox{2cm}{\phantom{.}}\\
\end{tabularx}
}
\end{beamercolorbox}
}
% The footer of the poster.
\setbeamertemplate{footline}{
\colorbox{ULBlue}{
\begin{beamercolorbox}{footer}
\begin{tabularx}{0.993\paperwidth}{XXX}
\\
\hspace{2cm}
\hspace{2cm}
\includegraphics[height=3cm]{ul_logo} &
\hfill
\centerLogo
\centerLogo
\hfill \phantom{.} &
\hfill
\rightLogo \hspace{2cm} \phantom{.}\\
\\
\end{tabularx}
}
\end{beamercolorbox}
}
%
......@@ -174,18 +183,21 @@
%
% Add a box with a background colour and a two column minipage in it.
% NOTE: Deprecated, use the cblock environment instead.
\newcommand{\colorBlock}[4] {
\vspace{\colorBlockPadding}
\colorbox{#1}{
\begin{beamercolorbox}{#1}
\begin{minipage}{\textwidth}
\vspace{\colorBlockBorder}
\begin{center}
\begin{minipage}{0.95\textwidth}
\ifthenelse{\equal{#3}{2}}{\begin{multicols}{2}}{}
\raggedright
{\textbf {\large #2}}
\bigskip
\bigskip
\ifthenelse{\equal{#2}{}}{}{
\textbf {\large #2}
\bigskip
\bigskip
}
#4
\ifthenelse{\equal{#3}{2}}{\end{multicols}}{}
......@@ -193,9 +205,65 @@
\end{center}
\vspace{\colorBlockBorder}
\end{minipage}
}
\end{beamercolorbox}
\vspace{\colorBlockPadding}
}
% This package is used for better argument handling in environments.
\usepackage{xparse}
% Used for width of the text in a block.
\newlength{\blocktextwidth}
% Needed for the savenotes environment.
\usepackage{footnote}
% Make a block with a background colour.
%
% Parameters:
% #1 : Background colour.
% #2 : Title of the block.
% #3 : Number of columns (optional).
%
\NewDocumentEnvironment{cblock}{mmO{}} {
\vspace{\colorBlockPadding}
\begin{beamercolorbox}{#1}
\vspace{\colorBlockBorder}
\begin{center}
\setlength{\blocktextwidth}{\textwidth}
\addtolength{\blocktextwidth}{-2cm}
\begin{minipage}{\blocktextwidth}
\renewcommand{\thempfn}{\arabic{\@mpfn}}
\begin{savenotes}
\ifthenelse{\equal{#3}{}}{}{\begin{multicols}{#3}}
\raggedright
\ifthenelse{\equal{#2}{}}{}{
\textbf {\large #2}
\bigskip
\bigskip
}
}{
\ifthenelse{\equal{#3}{}}{}{\end{multicols}}
\end{savenotes}
\end{minipage}
\end{center}
\vspace{\colorBlockBorder}
\end{beamercolorbox}
\vspace{\colorBlockPadding}
}
% The poster environment.
\newenvironment{poster}{
\begin{frame}[fragile, environment=poster]{}
\begin{myPoster}
}{
\end{myPoster}
\end{frame}
}
% Filler for the example poster.
\usepackage{lipsum}
\mode
<all>
@article{ HKL,
author = "Hoogeboom, H.J. and Kosters, W.A. and Laros, J.F.J.",
title = "Selection of {DNA} markers",
journal = "IEEE Transactions on Systems, Man, and Cybernetics Part C",
volume = 38,
pages = "26--32",
year = 2008
}
@inproceedings{ SD,
author = "Hoogeboom, H.J. and Kosters, W.A. and Laros, J.F.J.",
title = "Substring Differences in Genomes",
booktitle = "Proceedings of the Benelux Bioinformatics Conference {BBC 2008}",
pages = "62",
year = 2008
}
......@@ -7,7 +7,7 @@
}
\institute[shortinst]{
\inst{1} Department of Human Genetics, Leiden University Medical Center,
Leiden, The Netherlands \and
Leiden, The Netherlands \and
\inst{2} Leiden Genome Technology Center, Leiden University Medical Center,
Leiden, The Netherlands \and
\inst{3} Netherlands Bioinformatics Center, Nijmegen, The Netherlands
......@@ -30,65 +30,99 @@
\usetheme{lumc}
%\usepackage{xparse}
%
%\newlength{\blockwidth}
%
%\NewDocumentEnvironment{cblock}{mmo} {
% \vspace{\colorBlockPadding}
% \begin{beamercolorbox}{#1}
% \vspace{\colorBlockBorder}
% \begin{center}
% \setlength{\blockwidth}{\textwidth}
% \addtolength{\blockwidth}{-2cm}
% \begin{minipage}{\blockwidth} % Should be \textwidth - 1cm
% \ifthenelse{\equal{#3}{2}}{\begin{multicols}{2}}{}
% \raggedright
% \ifthenelse{\equal{#2}{}}{}{
% \textbf {\large #2}
% \bigskip
% \bigskip
%
% }
%}{
% \ifthenelse{\equal{#3}{2}}{\end{multicols}}{}
% \end{minipage}
% \end{center}
% \vspace{\colorBlockBorder}
% \end{beamercolorbox}
% \vspace{\colorBlockPadding}
%}
%
%\newenvironment{poster}{
% \begin{frame}[fragile, environment=poster]{}
% \begin{myPoster}
%}{
% \end{myPoster}
% \end{frame}
%}
\begin{document}
\begin{frame}{}
\begin{myPoster}
\colorBlock{Background}{Introduction}{1}{
Introduction text.
}
\colorBlock{YellowBg}{Setup}{1}{
Explanation of the experiment.
\begin{itemize}
\item One.
\item Two.
\end{itemize}
}
\colorBlock{WhiteBg}{Conclusions}{1}{
Bla bla.
\begin{figure}
\includegraphics[width = \columnwidth]{nbic_logo}
\caption{An example picture}
\end{figure}
}
\nextColumn
\colorBlock{BlueBg}{Results}{2}{
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla\footnote{Bla bla bla.}
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
}
\colorBlock{GreenBg}{Other section}{2}{
Bla bla.
\begin{figure}
\includegraphics[width = \columnwidth]{nbic_logo}
\caption{An example picture}
\end{figure}
}
\colorBlock{SalmonBg}{Other section}{2}{
Bla bla.
\begin{figure}
\includegraphics[width = \columnwidth]{nbic_logo}
\caption{An example picture}
\end{figure}
}
\colorBlock{Background}{References}{2}{
\bibliography{$HOME/projects/bibliography}{}
}
\end{myPoster}
\end{frame}
\begin{poster}
\begin{cblock}{Background}{Introductio}
\lipsum[1]
Usum atque\footnote{Nota.} adnotationibus
demonstratio\footnote{Notam secundam.}.
\end{cblock}
\begin{cblock}{YellowBg}{Ratio}
\lipsum[2]
\bigskip
\bigskip
\begin{lstlisting}[caption={Numeri Fibonacciani.}]
def fibonacci(n):
if n < 2:
return n
return fibonacci(n - 1) + fibonacci(n - 2)
\end{lstlisting}
\end{cblock}
\begin{cblock}{WhiteBg}{Conclusio}
\lipsum[3]
\end{cblock}
\nextColumn
\begin{cblock}{BlueBg}{Consecutio}[3]
\lipsum[4-5]
\end{cblock}
\begin{cblock}{GreenBg}{}[2]
\lipsum[6]
\begin{itemize}
\item Primam~\cite{HKL}.
\item Alterum~\cite{SD}.
\end{itemize}
\lipsum[7]
\begin{figure}
\includegraphics[width = \columnwidth]{ul_logo}
\caption{Sicut pictura.}
\end{figure}
\end{cblock}
\begin{cblock}{SalmonBg}{Pars altera}
\lipsum[8]
\end{cblock}
\begin{cblock}{Background}{Relatio}
\bibliography{bibliography}{}
\end{cblock}
\end{poster}
\end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment