tabularray icon indicating copy to clipboard operation
tabularray copied to clipboard

Enhancement: Booktabs equivalent to "hlines" inner specification

Open jw5801 opened this issue 3 years ago • 1 comments

It would be excellent to have a "rules" inner specification which functions like the "hlines" specification but uses the booktabs top/mid/bottom rules instead.

That is, inserts a \toprule at the start of the table, \midrule between each row, and \bottomrule at the end.

For example:

\begin{tblr}{colspec={lll}}
  \toprule
  Row A & Row A & Row A \\
  \midrule
  Row B & Row B & Row B \\
  \bottomrule
\end{tblr}

Could instead be written as:

\begin{tblr}{colspec={lll},rules}
  Row A & Row A & Row A \\
  Row B & Row B & Row B \\
\end{tblr}

jw5801 avatar Jul 12 '22 02:07 jw5801

You may define a new tabularray environment:

\NewTblrEnviron{mytblr}
\SetTblrInner[mytblr]{hline{1,Z}={0.08em},hline{2-Y}={0.05em}}

lvjr avatar Jul 13 '22 03:07 lvjr

This issue is a duplicate of #207.

lvjr avatar Aug 22 '22 13:08 lvjr