这为什么不起作用?
\phantom{
\begin{figure}[H]
\includegraphics{fig.pdf}
\end{figure}
}
它输出
Error: Something's wrong--perhaps a missing \item.
我正在尝试做这样的事情
\begin{frame}
\only<1>{%
\begin{tabular}{r|ccc}
Cool table & $a$ & $b$ & $c$ \\\hline
$a$ & 1 & 1 & 0 \\
$b$ & 1 & 1 & 1 \\
\end{tabular}\\
}
\only<2>{%
\begin{tabular}{r|ccc}
Cool table & $a$ & $b$ & $c$ \\\hline
$a$ & 1 & \color{red}1 & 0 \\
$b$ & 1 & 1 & 1 \\
\end{tabular}\\
}
\only<3>{%
\begin{tabular}{r|ccc}
Cool table & $a$ & $b$ & $c$ \\\hline
$a$ & 1 & 1 & \color{red}0 \\
$b$ & 1 & 1 & 1 \\
\end{tabular}\\
}
\only<2>{%
\begin{figure}
\centering
\includegraphics{../shared/arrows_0.pdf}
\end{figure}
}
\only<3>{%
\begin{figure}
\centering
\includegraphics{../shared/arrows_1.pdf}
\end{figure}
}
\end{frame}
而且我不希望表格或图片跳动。