在我的演示文稿中,我需要在列表项下放置两个图表。我尝试了以下代码,但收到一条错误消息,指出“缺少数字,视为零。\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!