以下操作正确,因为正确的表格在正确的时间显示,并且所有对齐方式均按预期工作。唯一的问题是,虽然表格主体显示正常,但表格标题却像被 一样被阴影化了\setbeamercovered{transparent}
。
\begin{frame}
\frametitle{Reduced Resource Requirements}
\begin{columns}
\begin{column}[c]{0.5\textwidth}
\setbeamercovered{transparent}
\hspace{-2em}
\begin{itemize}
\onslide<1>\item $95\%$ decrease disk footprint
\onslide<2>\item $86\%$ decrease memory footprint
\onslide<3>\item $62\%$ decrease in runtime
\end{itemize}
\end{column}
\begin{column}[c]{0.5\textwidth}
\setbeamercovered{invisible}
\begin{overprint}
\onslide<1>
\begin{table}
\centering
\caption{On Disk Requirement}
\begin{tabular}{r|l}
AST & Source code \\
& \& build toolchain \\
ASM & Assembly code \\
& assembler \& linker \\
ELF & Compiled executable \\
\end{tabular}
\end{table}
\onslide<2>
\begin{table}
\centering
\caption{Memory(MB) Requirements}
\begin{tabular}{r|l}
AST & 1402 \\
ASM & 756 \\
ELF & 200 \\
\end{tabular}
\end{table}
\onslide<3>
\begin{table}
\centering
\caption{Runtime (Sec)}
\begin{tabular}{r|l}
AST & 229.50 \\
ASM & 278.30 \\
ELF & 74.20 \\
\end{tabular}
\end{table}
\end{overprint}
\end{column}
\end{columns}
\end{frame}
我尝试将每个表包装在一个块中,但这会导致 TeX 堆栈溢出问题。任何想法都非常感谢。
答案1
的行为\onslide
取决于它是在overprint
环境内部使用还是单独使用。在环境外部,您必须使用括号来分隔命令的参数\onslide
。这似乎可以解决问题:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Reduced Resource Requirements}
\begin{columns}
\begin{column}[c]{0.5\textwidth}
\setbeamercovered{transparent}
\hspace{-2em}
\begin{itemize}
\onslide<1>{\item $95\%$ decrease disk footprint}
\onslide<2>{\item $86\%$ decrease memory footprint}
\onslide<3>{\item $62\%$ decrease in runtime}
\end{itemize}
\end{column}
\begin{column}[c]{0.5\textwidth}
\setbeamercovered{invisible}
\begin{overprint}
\onslide<1>
\begin{table}
\centering
\caption{On Disk Requirement}
\begin{tabular}{r|l}
AST & Source code \\
& \& build toolchain \\
ASM & Assembly code \\
& assembler \& linker \\
ELF & Compiled executable \\
\end{tabular}
\end{table}
\onslide<2>
\begin{table}
\centering
\caption{Memory(MB) Requirements}
\begin{tabular}{r|l}
AST & 1402 \\
ASM & 756 \\
ELF & 200 \\
\end{tabular}
\end{table}
\onslide<3>
\begin{table}
\centering
\caption{Runtime (Sec)}
\begin{tabular}{r|l}
AST & 229.50 \\
ASM & 278.30 \\
ELF & 74.20 \\
\end{tabular}
\end{table}
\end{overprint}
\end{column}
\end{columns}
\end{frame}
\end{document}
\onslide
就您而言,如果您利用了覆盖意识,您甚至不需要使用\item
:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Reduced Resource Requirements}
\begin{columns}
\begin{column}[c]{0.5\textwidth}
\setbeamercovered{transparent}
\hspace{-2em}
\begin{itemize}
\item<1> $95\%$ decrease disk footprint
\item<2> $86\%$ decrease memory footprint
\item<3> $62\%$ decrease in runtime
\end{itemize}
\end{column}
\begin{column}[c]{0.5\textwidth}
\setbeamercovered{invisible}
\begin{overprint}
\onslide<1>
\begin{table}
\centering
\caption{On Disk Requirement}
\begin{tabular}{r|l}
AST & Source code \\
& \& build toolchain \\
ASM & Assembly code \\
& assembler \& linker \\
ELF & Compiled executable \\
\end{tabular}
\end{table}
\onslide<2>
\begin{table}
\centering
\caption{Memory(MB) Requirements}
\begin{tabular}{r|l}
AST & 1402 \\
ASM & 756 \\
ELF & 200 \\
\end{tabular}
\end{table}
\onslide<3>
\begin{table}
\centering
\caption{Runtime (Sec)}
\begin{tabular}{r|l}
AST & 229.50 \\
ASM & 278.30 \\
ELF & 74.20 \\
\end{tabular}
\end{table}
\end{overprint}
\end{column}
\end{columns}
\end{frame}
\end{document}