I have never used hdtbl, and it looks like it can do exactly what I want.
Thank you.

However, when I tried the following, modified from groff_hdtbl(7):

.LP
Something goes here.
.TBL cols=3
. TR .TD 1*1 ".TD rowspan=2" 1+2*2 .TD 1*3
. TR .TD 2*1 .TD 2*3
.ETB
.LP
Something else ends here.

I was surprised by the output:
[image: image.png]
The table appears *above* the first paragraph.  I was expecting it to be
between the two paragraphs.  Is there a way to force it to appear between
the two paragraphs?


On Tue, Jun 8, 2021 at 7:42 AM Boss Hog <[email protected]> wrote:

> On Mon, Jun 07, 2021 at 04:11:58PM -0400, T. Kurt Bond wrote:
> > Is there any way to make alternate rows of a table have a light gray
> > background?
>
>
> Is HDTBL a viable option for your data?
>
> I was thinking of the options from man groff_hdtbl:
> bgc=[c]
>               The  background  color  of the table cells.
>               This includes the area specified with the ‘csp’ argument.
>               The argument ‘bgc=’ (no value) suppresses a background color;
>               this makes the background transparent.
>               Default: ‘bgc=bisque’ (string ‘t*bgc’).
>
> fgc=c         The foreground color of the cell contents.
>               Default: ‘fgc=red4’ (string ‘t*fgc’).
>
>
>
>

-- 
T. Kurt Bond, [email protected], https://tkurtbond.github.io

Reply via email to