I am currently preparing a poster for a conference and decided to use 'beamerposter' for that purpose.
As I don't really like the standard templates I decided to go after a design similar to this one: http://ai.stanford.edu/~tadayuki/poster/poster-sample.pdf
(Unfortunately, I cannot use that template directly, as I ran into some problems when using my own TikZ figures.)
This is a short example of my code:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}
\usepackage{tikz}
\usepackage[english]{babel}
\usepackage{xparse}
\usepackage{blindtext}
\usetikzlibrary{positioning}
\xdefinecolor{topcolor}{rgb}{0.2, 0.4, 0.6}
\xdefinecolor{bottomcolor}{rgb}{1, 0.99, 0.82}
\xdefinecolor{blocktitleboxcolor}{rgb}{0.15, 0.30, 0.60}
\xdefinecolor{blocktitletextcolor}{rgb}{1.00, 1.00, 1.00}
\beamertemplateshadingbackground{bottomcolor}{topcolor}
% The interesting stuff starts here
\newsavebox\blockbox
\NewDocumentEnvironment{myblock}{+m}{%
\vskip 0.5em
\begin{lrbox}{\blockbox}%
\begin{minipage}{1.00\textwidth}
}{
\end{minipage}
\end{lrbox}
\begin{tikzpicture}[node distance=-0.5em]
\node[
fill=white,
draw=black,
line width=4pt,
inner sep=1cm,
rounded corners=1cm,
text width=\textwidth-2cm, % This does not work as expected
outer sep=0pt
](textnode){\usebox\blockbox};
\node[anchor=north,
above=of textnode,
draw=black,
fill=blocktitleboxcolor,
text=blocktitletextcolor,
rounded corners=.5cm,
line width=4pt,
inner xsep=0.8cm,
inner ysep=0.4cm] {\textit{\textsf{\textbf{#1}}}};
\end{tikzpicture}
}
\begin{document}
\begin{frame}
\begin{columns}[T]
\begin{column}{0.40\textwidth}
\rule{\textwidth}{0.5cm}
\begin{myblock}{Foo}
\blindtext
\end{myblock}
\end{column}
\begin{column}{0.40\textwidth}
\rule{\textwidth}{0.5cm}
\begin{myblock}{Foo}
\blindtext
\end{myblock}
\end{column}
\end{columns}
\end{frame}
\end{document}
However, I would like to have the TikZ node to have a total
width of \textwidth (indicated by the horizontal rules).
Unfortunately, I cannot use the 'text width' property on the
node.
The problem seems to be that the text that is stored in
\blockbox has a width of \textwidth.
Is there a way to reset the width of the box?
As I am not very proficient with the TeX internals, there might well be a better way to achieve what I want, so please feel free to suggest a better approach...
