lvjr / tabularray

Typeset tabulars and arrays with LaTeX3
https://ctan.org/pkg/tabularray
247 stars 22 forks source link

Support setting styles for specific level or level range #402

Open muzimuzhi opened 1 year ago

muzimuzhi commented 1 year ago

Currently \SetTblrInner and \SetTblrOuter works for tblr tables in all levels, but sometimes users want to set styles for a specific level or level range. For example, in https://github.com/lvjr/tabularray/issues/401#issuecomment-1537147082 what's needed is to set baseline=t only for level 1 tables.

A similar utility is the key /tcb/every box on layer <n> in tcolorbox package.

lvjr commented 1 year ago

This reminds me of issue #270. I could solve both #400 and #402 with the new keyvalue library. So I only need to add two commands \SetAllTblrInner and \SetAllTblrOuter and two new clists.

muzimuzhi commented 1 year ago

A similar utility is the key /tcb/every box on layer <n> in tcolorbox package.

And key /tcb/every box on higher layers.