我有以下幻灯片:
\documentclass{beamer}
\usepackage{multicol}
\begin{document}
\begin{frame}{Why does this happen?}
\begin{multicols}{2}
\begin{center}
\begin{enumerate}
\item Text
\item More text
\end{enumerate}
\end{center}
\columnbreak
\begin{center}
\begin{enumerate}
\item Text
\item More text
\end{enumerate}
\end{center}
\end{multicols}
\end{frame}
\end{document}
在第二列中,两个 \items 之间的垂直间距完全错误。什么原因导致了这个问题?
答案1
\documentclass{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{Because you were not using the built--in \texttt{columns}}
\begin{columns}[t]
\begin{column}{0.49\textwidth}
\begin{enumerate}
\item Text
\item More text
\end{enumerate}
\end{column}
\begin{column}{0.49\textwidth}
\begin{enumerate}
\item Text
\item More text
\end{enumerate}
\end{column}
\end{columns}
\end{frame}
\end{document}