我想使用该beamerposter
软件包制作一张 A0 海报。海报内容应出现在block
需要灵活且整洁的布局处理的环境中。特别是,我需要列和子列。
该主题的最佳答案
跨越多个光束柱
建议简单地做嵌套环境column
。
但结果并不理想。因为列边界似乎没有整齐对齐,列之间的间距也不是处处相同。奇怪的是,子列甚至没有在其“主”列中正确居中。
某些hfill
命令和center
环境并没有真正起到帮助作用。我尝试将块嵌入到小页面而不是列中,但问题类似:块边界不均等且不对齐。我对环境的理解multicol
是,它也不会起到帮助作用,因为我拥有的是堆叠在一起的不同列布局,这些列的两侧还有其他列。
这个问题的干净解决方案是什么?
我当前尝试的结果如下:
感谢帮助,
\documentclass[final]{beamer}
\mode<presentation>{\usetheme{Berlin}}
\usepackage{multicol}
\usepackage[orientation=landscape,size=a0,scale=1.4,debug,grid]{beamerposter}
\begin{document}
\begin{frame}{}
\begin{columns}[t]
\begin{column}{.24\linewidth}
\begin{block}{\large First column}
abc
\end{block}
\end{column}
\begin{column}{.48\linewidth}
\begin{block}{\large Second (double-span) column}
abc
\end{block}
\begin{columns}[t]
\begin{column}{.24\linewidth}
\begin{block}{\large First subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.74\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\end{columns}
\end{column}
\begin{column}{.24\linewidth}
\begin{block}{\large Third column}
abc
\end{block}
\end{column}
\end{columns}
\end{frame}
\end{document}
答案1
\documentclass[final]{beamer}
\mode<presentation>{\usetheme{Berlin}}
\usepackage{multicol}
\usepackage[orientation=landscape,size=a0,scale=1.4,debug,grid]{beamerposter}
\newsavebox{\squaredblocktext}
\setbeamertemplate{block begin}{
\par\vskip\medskipamount%
\makebox[\dimexpr\textwidth-1.5ex\relax][l]{%
\begin{beamercolorbox}[colsep*=.75ex]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}}%
\begin{lrbox}{\squaredblocktext}%
\begin{minipage}[t]{\textwidth}%
\ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
}
\setbeamertemplate{block end}{
\end{minipage}%
\end{lrbox}%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title}{}
{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
\usebeamerfont{block body}%
\makebox[\dimexpr\textwidth-1.5ex\relax][l]{%
\begin{beamercolorbox}[colsep*=.75ex,vmode]{block body}%
\usebox{\squaredblocktext}
\end{beamercolorbox}%
}\vskip\smallskipamount%
}
\begin{document}
\begin{frame}{}
\begin{columns}[t]
\begin{column}{.24\linewidth}
\begin{block}{\large First column}
abc
\end{block}
\end{column}
\begin{column}{.48\linewidth}
\begin{block}{\large Second (double-span) column}
abc
\end{block}
\begin{columns}[t, totalwidth=\textwidth]
\begin{column}{.225\linewidth}
\begin{block}{\large First subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.725\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\end{columns}
\end{column}
\begin{column}{.24\linewidth}
\begin{block}{\large Third column}
abc
\end{block}
\end{column}
\end{columns}
\end{frame}
\end{document}