3

Is there some way to have remarks printed before notes when using the tabularray package?

\documentclass{article}
\usepackage{tabularray}
\begin{document}
  \begin{talltblr}[
    caption={A table},
    remark{Note}={Something noteworhty.},
    note{a}={A table footnote.}
  ]{
    colspec={@{}Xcc@{}}
  }
    \hline
    & A & B \\
    \hline
    A row heading\TblrNote{a} & a & 123 \\
    Another row heading & b & 456 \\
    Yet another row heading & c & 789 \\
    \hline
  \end{talltblr}
\end{document}
5

Defining a new theme.

c

\documentclass{article}
\usepackage{tabularray}
\begin{document}
    
    %*********************** addeed <<<<<<<<<<<<<<<<<<
    \DefTblrTemplate{lastfoot}{mytheme}{%   
    \UseTblrTemplate{remark}{default}
    \UseTblrTemplate{note}{default} 
    }   
    \NewTblrTheme{mytheme}{
        \SetTblrTemplate{lastfoot}{mytheme}
    }
        
    
    \begin{talltblr}[
        caption={A table, default theme},
        remark{Note}={Something noteworhty.},
        note{a}={A table footnote.}
        ]{
            colspec={@{}Xcc@{}}
        }
        \hline
        & A & B \\
        \hline
        A row heading\TblrNote{a} & a & 123 \\
        Another row heading & b & 456 \\
        Yet another row heading & c & 789 \\
        \hline
    \end{talltblr}

\bigskip

    \begin{talltblr}[
    theme =mytheme,     
    caption={A table with a new theme},
    remark{Note}={Something noteworhty.},
    note{a}={A table footnote.} 
    ]{
        colspec={@{}Xcc@{}}
    }
    \hline
    & A & B \\
    \hline
    A row heading\TblrNote{a} & a & 123 \\
    Another row heading & b & 456 \\
    Yet another row heading & c & 789 \\
    \hline
\end{talltblr}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.