groff
[Top][All Lists]
Advanced

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

Re: [Groff] Unexpected tbl behavior


From: Blake McBride
Subject: Re: [Groff] Unexpected tbl behavior
Date: Fri, 5 Sep 2014 08:24:01 -0500

Thanks for the help!


On Fri, Sep 5, 2014 at 12:30 AM, Ingo Schwarze <address@hidden> wrote:

> Hi Blake,
>
> here are the rules:
>
>  - column widths are measured unless specified
>    [tbl(1), second paragraph below "Table data"]
>  - measurements result in at least 1n [undocumented]
>  - column separations default to 3n unless specified
>    [tbl(1), last but one paragraph]
>  - "\_" extend from the beginning of the column to one beyond the end
>  - "_" extend half into the separation on either side, rounding up
>    [both in tbl(1), third paragraph from the end in "Table data",
>     but somewhat fuzzily, neither explaining the "one beyond the end"
>     nor the "half rounding up" exactly]
>
> On Thu, Sep 4, 2014 at 10:01 PM, Blake McBride <address@hidden> wrote:
>
> > .TS
> > tab(;);
> > L L L L L .
> > AAA;;BBB;;CCC
> > _;;_;;_
> > aaa;;bbb;;ccc
> > .TE
>
> number of columns:      5
> widths (measured):      3 1 3 1 3
> separations (default):   3 3 3 3
> rulers into sep's:      3/2 = 2
> consequently:
> columns with data:      1>3     11>13       21>23
> separations:              4>6 8>10 14>16 18>20
> rulers:                 1>3+2 11-2>13+2   21-2>23+1
>
> > The first column is, unexpectedly, wide, i.e. longer than needed.
>
> It isn't.  There is a second, empty column and two separations.
>
> > The second column is not left justified.
> > It has padding on the right and left.
>
> It is left justified and it hasn't padding on either side.
> The "_" rulers extend half into the separations on either side.
>
> > The third column had no padding on the right, but does on the left.
>
> No padding here either.
>
>
> Blake McBride wrote on Thu, Sep 04, 2014 at 10:52:27PM -0500:
>
> > .TS
> > tab(;);
> > L L L .
> > AAA;BBB;CCC
> > \_;\_;\_
> > aaa;bbb;ccc
> > .TE
>
> number of columns:      3
> widths (measured):      3 3 3
> separations (default):   3 3
> rulers into sep's:      0 left, 1 right
> consequently:
> columns with data:      1>3   7>9   13>15
> separations:               4>6   10>12
> rulers:                 1>4+1 7>9+1 13>15+1
>
> Yours,
>   Ingo
>


reply via email to

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