针对此问题Tabularray 和 beamer 兼容性,如何逐行显示表格beamer
?
平均能量损失
\documentclass{beamer}
\usepackage{tabularray}
\UseTblrLibrary{counter} %% added this line
\begin{document}
\begin{frame}
\frametitle{TEST}
\begin{tblr}{
colspec={cc},
width=\textwidth,
}
\visible<+(1)->{Test} & \visible<+(1)->{Test} \\
\visible<+(1)->{Test} & \visible<+(1)->{Test} \\
% \visible<+(1)->{Test& Test \\ } % pb here
% \visible<+(1)->{Test& Test \\ }
\end{tblr}
\end{frame}
\end{document}
答案1
看GitHub 问题 #226和热门答案 #2000更多细节。
通过使用库和键,可以轻松地tabularray
在文档中逐行、逐列或逐单元格显示表格:beamer
counter
cmd
\documentclass{beamer}
\usepackage{tabularray}
\UseTblrLibrary{counter}
\begin{document}
\begin{frame}
\frametitle{Show a taularray row by row}
\begin{tblr}{colspec={lll},cells={cmd=\onslide<\arabic{rownum}->}}
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr}
\end{frame}
\begin{frame}
\frametitle{Show a tabularray column by column}
\begin{tblr}{colspec={lll},cells={cmd=\onslide<\arabic{colnum}->}}
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr}
\end{frame}
\begin{frame}
\frametitle{Show a tabularray cell by cell}
\begin{tblr}{colspec={lll},cells={cmd=\onslide<+->}}
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr}
\end{frame}
\end{document}
答案2
您始终可以使用绝对帧号:
\documentclass{beamer}
\usepackage{tabularray}
\UseTblrLibrary{counter} %% added this line
\begin{document}
\begin{frame}
\frametitle{TEST}
\begin{tblr}{
colspec={cc},
width=\textwidth,
}
\visible<+(1)->{Test} & \visible<+(1)->{Test} \\
\visible<+(1)->{Test} & \visible<+(1)->{Test} \\
\visible<6->{Test} & \visible<6->{Test} \\
\visible<7->{Test} & \visible<7->{Test} \\
\end{tblr}
\end{frame}
\end{document}