我正在尝试关注这个帖子正确对齐列。我想制作一个海报环境,左侧有一列,然后将右侧分成顶部(有两列)和底部(有三列)。但是,这样做似乎会导致右侧出现额外的垂直空间?
以下是一个例子
\documentclass[]{beamer}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[orientation=landscape,size=a0,scale=1.2,debug]{beamerposter}
\usetheme{Frankfurt}
\begin{document}
\begin{frame}{}
\begin{columns}[t]
\begin{column}{.25\linewidth}
\begin{block}{\large First column}
abc
\end{block}
\end{column}
\begin{column}{.75\linewidth}
\begin{columns}[t, totalwidth=\textwidth]
\begin{column}{.5\linewidth}
\begin{block}{\large First subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.5\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\end{columns}
\begin{columns}[t, totalwidth=\textwidth]
\begin{column}{.333333\linewidth}
\begin{block}{\large First subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.333333\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.333333\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\end{columns}
\end{column}
\end{columns}
\end{frame}
\end{document}
答案1
使用[t, totalwidth=\textwidth]
最外列。我还适当调整了宽度。
\documentclass[]{beamer}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[orientation=landscape,size=a0,scale=1.2,debug]{beamerposter}
\usetheme{Frankfurt}
\begin{document}
\begin{frame}{}
\begin{columns}[t, totalwidth=\textwidth]
\begin{column}{.245\linewidth}
\begin{block}{\large First column}
abc
\end{block}
\end{column}%
\begin{column}{.745\linewidth}
\begin{columns}
\begin{column}{.5\linewidth}
\begin{block}{\large First subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.5\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\end{columns}
\begin{columns}
\begin{column}{.33\linewidth}
\begin{block}{\large First subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.33\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\begin{column}{.33\linewidth}
\begin{block}{\large Second subcolumn}
abc
\end{block}
\end{column}
\end{columns}
\end{column}
\end{columns}
\end{frame}
\end{document}