![Tabularray-在 Beamer 上逐行显示?](https://linux22.com/image/451336/Tabularray-%E5%9C%A8%20Beamer%20%E4%B8%8A%E9%80%90%E8%A1%8C%E6%98%BE%E7%A4%BA%EF%BC%9F.png)
针对此问题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}