tabularray
tabularray copied to clipboard
doublerulesep color for hlines and vlines
A bg
key would be a great addition to hlines and vlines, for double borders' background color. It would work like \doublerulesepcolor
from hhline
and colortbl
combined.
Recently I has been considering a bg
key for hborder
and vborder
. It will cover all three cases: doublerule sep color, dashed lines background color, and border text background color (such as @{text}
with column type @
).
That's wonderful! Could it also cover the background of trimmed borders? And why hborder
/vborder
instead of hline
/vline
?
hborder
is the rectangle canvas on which we draw hlines and write text. And neither normal or trimmed hlines will affect the color of canvas.
Could this bg
key also fix #215 ?
Could this
bg
key also fix #215 ?
I don't think so. It is another problem.
It is not that natural to set colors in hborder
/vborder
. To provide similar interfaces as those in colortbl
, I think it would be better to extend the existing rulesep
key as
rulesep = {size=2pt, color=brown}
where size
key corresponds to \doublerulesep
, and color
key correspond to \doublerulesepcolor
.
And we have already had an issue for backgound colors of hlines/vlines, and we need to create a new issue for background colors of border text later.
For the time being, you can get the same result of \doublerulesepcolor
by setting rulesep=0pt
and creating an extra colorful hline/vline in the middle.