
Estou tentando criar um pôster de 2 colunas usando a documentclass do beamer. Cada coluna deve ser dividida em vários blocos e cada um desses blocos tem seu próprio título. Os títulos deverão ter uma cor de fundo diferente da cor de fundo do texto seguinte.
Isto é o que eu tentei:
\documentclass[t]{beamer}
\usepackag{tcolorbox}
\setbeamersize{text margin left=1em, text margin right=1em}
\begin{document}
\begin{frame}
\tcbox[title=TITLE1]%
{\begin{minipage}[t][0.48\textwidth][t]
{\dimexpr0.45\textwidth-2\fboxsep-2\fboxrule-5pt\relax}
Some text1.
\end{minipage}}\hfill
\tcbox[title=TITLE2]%
{\begin{minipage}[t][0.49\textwidth][t]
{\dimexpr0.45\textwidth-2\fboxsep-2\fboxrule-5pt\relax}
Some text2.
\end{minipage}}\hfill
\end{frame}
\end{document}
Problema: A 2ª caixa de cores está na mesma coluna da 1ª. Deve estar no topo da coluna da direita. O que estou fazendo de errado?
editar: minha solução esfarrapada: usando "\begin{multicols*}{2}" em vez de "\begin{frame}"
Responder1
beamer
não pode saber que você quer duas colunas, a menos que você diga. Você pode fazer isso com\begin{columns}...
\documentclass[t]{beamer}
\usepackage{tcolorbox}
\setbeamersize{text margin left=1em, text margin right=1em}
\begin{document}
\begin{frame}
\begin{columns}
\begin{column}{.45\textwidth}
\tcbox[title=TITLE1]%
{\begin{minipage}[t][.5\textheight][t]
{\dimexpr.8\textwidth-2\fboxsep-2\fboxrule-5pt\relax}
Some text1.
\end{minipage}}
\end{column}
\begin{column}{.45\textwidth}
\tcbox[title=TITLE1]%
{\begin{minipage}[t][.5\textheight][t]
{\dimexpr.8\textwidth-2\fboxsep-2\fboxrule-5pt\relax}
Some text1.
\end{minipage}}
\end{column}
\end{columns}
\end{frame}
\end{document}