3

Following this question regarding Tabularray and beamer compatibility, How do you get to display a the table row by row in beamer ?

MWE

\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}

JeT
  • 3,020

2 Answers2

5

See GitHub Issue #226 and TopAnswers #2000 for more details.

It is easy to display a tabularray table row by row, column by column, or cell by cell in a beamer document, by using counter library and cmd key:

\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}

L.J.R.
  • 10,932
4

You can always use absolute frame number:

\documentclass{beamer}

\usepackage{tabularray}

\UseTblrLibrary{counter} %% added this line

\begin{document}

\begin{frame}
    \frametitle{TEST}

    \begin{tblr}{
            colspec={cc},
            width=\textwidth,
        }
        \visible&lt;+(1)-&gt;{Test} &amp; \visible&lt;+(1)-&gt;{Test} \\
        \visible&lt;+(1)-&gt;{Test} &amp; \visible&lt;+(1)-&gt;{Test} \\
        \visible&lt;6-&gt;{Test} &amp; \visible&lt;6-&gt;{Test} \\ 
        \visible&lt;7-&gt;{Test} &amp; \visible&lt;7-&gt;{Test} \\
    \end{tblr}

\end{frame}

\end{document}

Tom
  • 7,318
  • 4
  • 21