Re: [Groff] horizontal trap

2015-12-28 Thread Ralph Corderoy
Hi Peter, > Since you're in no-fill mode, it's a perfect job for the little-used > input line trap request. This should do what you want. I had a play with this, and renamed some things to understand what was going on. .de settrap . it 1 gotline . di prevline .. . .de go

Re: [Groff] horizontal trap

2015-12-28 Thread Carsten Kunze
Hi Ralph, > The `.in 1i' gives 2i indentation. Without diversions, this doesn't > happen so in some way the token for indentation occurs once originally > and is "replayed" by .prevline? I'm sure this has been discussed > before, but my Google fu let me down. .in should be set to 0 when the di

Re: [Groff] horizontal trap

2015-12-28 Thread Tadziu Hoffmann
The behavior described may appear puzzling, but in > \Z'\l'4i''four inch the \Z'...' does mean "zero width" (really!), so the total width of this line is only the width of the text "four inch" (which is less than 4 in.). > Line 32 exceeds width. > Line 33 exceeds width. This is tr

Re: [Groff] horizontal trap

2015-12-28 Thread Tadziu Hoffmann
> \Z'\l'4i''four inch If you need a text line of a specified width, you can switch the rule and the label around: .de LR \Z'\\$1 inch'\D'l \\$1i 0' .. Using this .LR 1 .LR 2 .LR 3 .LR 4 .LR 5 .LR 6 will then indeed trigger the length warning for the above lines 5 & 6.

Re: [Groff] horizontal trap

2015-12-28 Thread Dave
I love this list. Thank you, everyone!