![如何在Beamer中提醒一行或一組行?](https://rvso.com/image/370325/%E5%A6%82%E4%BD%95%E5%9C%A8Beamer%E4%B8%AD%E6%8F%90%E9%86%92%E4%B8%80%E8%A1%8C%E6%88%96%E4%B8%80%E7%B5%84%E8%A1%8C%EF%BC%9F.png)
我想在幻燈片中突出顯示結果表的不同部分。
嘗試這樣的事情
\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 頁。