Open Basmah1961 opened 2 weeks ago
The technic of >{...}
provided by array
is not similar to the key cmd
of tabularray
.
>{...}
will insert tokens at the beginning of the cell, but those tokens are not able to grab the content of the cell as an argument for a LaTeX command. That means that it's not possible to write >{\fbox}
with the expected result. Of course, it's possible to put declarative commands such as \bfseries
or \color{white}
.
In the tables of LaTeX (with the standard package array
), one have to use the package collcell
in order to be able to specify a command that will be applied to all the cells of a column. Since nicematrix
relies on the arrays of the package array
, the situation is the same for the environments of nicematrix
.
tabularray
package has a keycmd
to execute a command for every cell text. It is possible to use the legacy>{cmd}
to provide similar commands, but it is neater to provide such option as a key forX
column type. Also, I think it is good to provide hanging as an option for column specifiers