[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there any way to make alternate rows of a table have a light gray
Re: Is there any way to make alternate rows of a table have a light gray background?
Wed, 9 Jun 2021 16:51:06 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1
Hi Tadziu, your answer looks more like a new feature and less than an
Perhaps, if this code is placed in a .so-urcable macro wrapper, then
users will certainly pick it up. To me, it really looks like a welcome
On 09/06/2021 14:31, Tadziu Hoffmann wrote:
The data is simple, but the table is wide and the data
occurs in a right triangle shape, with one point at the
top left, another point at the top right, and the other
point at the bottom right. This means that it is hard to
accurately follow from the row heading on the left to the
appropriate column on the right.
Is there any way to make alternate rows of a table have a
light gray background?
It is possible only with some trickery, and it's easier
if all the lines have the same height, otherwise much more
manual intervention will be necessary. To make this fully
automatic will probably require modifying tbl.
In the attached example, the gray background is created by
drawing filled boxes across the width of the table. In fact,
the background is drawn in advance for the *next* line, in
order to prevent the horizontal line from being painted over,
which can happen at low resolutions; however, this requires
two slightly different versions of the fill because the line
spacing is different around the horizontal line.
TW is the width of the table and is set by tbl. LW is a
correction for (half) the line width and is only necessary
because I'm using square linecaps.
Re: Is there any way to make alternate rows of a table have a light gray background?, Boss Hog, 2021/06/08