groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] table column widths


From: Ralph Corderoy
Subject: Re: [Groff] table column widths
Date: Sat, 20 Dec 2003 00:27:05 +0000

Hi Brian,

> >   lw(\n[.l]/3u) lw(2*\n[.l]/3u)
> > 
> > then I think you will find that it works.
> 
> I tried that but it doesn't seem to work. The second column ends up
> with an unrestricted width, but the first column is sized correctly.
> 
> ...
> 
> It seems that the width specifier doesn't like getting numerical
> expressions. If I calculate and store the values in registers:
>    .nr y0 (\n[.l]u-\n[.i]u-4n/4)
>    .nr y1 (\nx)
>    .nr y2 (\nx*3)
>    .TS
>    ll
>    __
>    lw(\n[y1]u)|lw(\n[y2]u).
> that works fine.

Since tbl outputs similiar .nr lines to your y0, y1, etc., that's
surprising.  Perhaps it's because \n[.l] has a different value later on
when it value is retrieved and a

    .nr linelength \n[.l]
    ...
    .TS
    ...
    lw(\n[linelength]u-\n[linelength]u-4n/4)

would work too.

Cheers,


Ralph.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]