tabularray icon indicating copy to clipboard operation
tabularray copied to clipboard

doublerulesep color for hlines and vlines

Open JDMCreator opened this issue 2 years ago • 7 comments

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.

JDMCreator avatar Aug 13 '22 23:08 JDMCreator

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 @).

lvjr avatar Aug 16 '22 01:08 lvjr

That's wonderful! Could it also cover the background of trimmed borders? And why hborder/vborder instead of hline/vline?

JDMCreator avatar Aug 16 '22 01:08 JDMCreator

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.

lvjr avatar Aug 16 '22 03:08 lvjr

Could this bg key also fix #215 ?

JDMCreator avatar Aug 16 '22 14:08 JDMCreator

Could this bg key also fix #215 ?

I don't think so. It is another problem.

lvjr avatar Aug 17 '22 02:08 lvjr

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.

lvjr avatar Aug 21 '22 04:08 lvjr

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.

lvjr avatar Aug 21 '22 04:08 lvjr