有没有什么办法可以打印备注前使用套餐时需注意什么tabularray
?
\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}
答案1
定义一个新主题。
\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}