如何在Beamer中提醒一行或一組行?

如何在Beamer中提醒一行或一組行?

我想在幻燈片中突出顯示結果表的不同部分。

嘗試這樣的事情

\begin{tabular}{lll}
\alert<2>{
1 & 2 & 3\\
4 & 5 & 6\\
}
7 & 8 & 9\\
\end{tabular}

Missing \endgroup inserted.Beamer總是拋出 錯誤。我什至無法讓它為單行工作。

我可以知道是否有一種方法可以在Beamer中提醒一行或一組行?

答案1

\documentclass[table]{beamer}

\begin{document}
\begin{frame}
\frametitle{uncovering table rows}
\begin{tabular}{l!{\vrule}cccc}
Class & A & B & C & D \\
    \hline
\alert<2> X & \alert<2> 1 & \alert<2> 2 & \alert<2> 3 & \alert<2> 4 \\
\alert<2> Y & \alert<2> 3 & \alert<2> 4 & \alert<2> 5 & \alert<2> 6 \\
          Z & 5           & 6           & 7           & 8           \\
\end{tabular}
\end{frame}
\end{document}

有關詳細信息,請參閱beamer文件(版本 3.49 使用者指南),第 219 頁。

在此輸入影像描述

相關內容