![连续使用 itemize 和 column 时出错](https://linux22.com/image/386519/%E8%BF%9E%E7%BB%AD%E4%BD%BF%E7%94%A8%20itemize%20%E5%92%8C%20column%20%E6%97%B6%E5%87%BA%E9%94%99.png)
在我的演示文稿中,我需要在列表项下放置两个图表。我尝试了以下代码,但收到一条错误消息,指出“缺少数字,视为零。\end{frame}”。如果我删除这段代码,它就可以正常工作。这段代码是;
\begin{frame}[t]{Simulation Results \& Observations}
\begin{itemize}
\item NCMSE based analysis of SiT-OMP \& SiT-CoSaMP with variations in Sparsity (S)
\end{itemize}
\begin{columns}
\begin{column}{width=0.5\textwidth}
Here is something.
\end{column}
\begin{column}{width=0.5\textwidth}
Here is something.
\end{column}
\end{columns}
\end{frame}
答案1
罪魁祸首就width=
在\begin{column}{width=0.5\textwidth}
。
\documentclass{beamer}
\begin{document}
\begin{frame}[t]{Simulation Results \& Observations}
\begin{itemize}
\item NCMSE based analysis of SiT-OMP \& SiT-CoSaMP with variations in Sparsity (S)
\end{itemize}
\begin{columns}
\begin{column}{0.48\textwidth}
Here is something.
\end{column}
\begin{column}{0.48\textwidth}
Here is something.
\end{column}
\end{columns}
\end{frame}
\end{document}
编辑:稍微减小了宽度,以防止第二行超出框架。非常感谢@samcarter!