Open lvjr opened 1 year ago
It would be quite handy to provide a child selector every
for Nth row customization.
every{3}
selects children with index of the form 1+3x
every[2]{3}
selects children with index of the form 2+3x
every[2-Y]{3}
selects children with index of the form 2+3x
between 2
to Y
With this new child selector, most ordinary users need not to write expl3
code.,
every{3}
selects children with index of the form1+3x
By convention users may expect every{3}
will select 3, 6, 9, ..., hence the sequence 3+3x
for x = 0, 1, 2, ...
(or 3x
for x = 1, 2, 3, ...
), not 1+3x
.
Two reasons: (1) the default value of its optional argument is 1, which is the same as odd
selector; (2) when a table is separated into some parts, the subhead rows are normally of indexes 1, 4, 7, 10, etc.
Discussed in https://github.com/lvjr/tabularray/discussions/281