Re: [Groff] question about .rs and .nop

2013-08-26 Thread Tadziu Hoffmann
> BTW, I never understood why the formatting macro packages > don't like the user to put space at the top of their pages. It's not about not wanting the user to put space at the top if the user wants it, but rather about not putting space there if it's not wanted. Example: usually you want secti

Re: [Groff] question about .rs and .nop

2013-08-26 Thread Tadziu Hoffmann
> > The problem you see is related to header traps. [...] and > > this behaviour is not controllable by `rs'. It seems that > > after the top header trap mom plants other, probably unused > > vertical traps. > Any suggestion for a clean solution? How about this: .MAC MyNewPage END .NEWPA

Re: [Groff] question about .rs and .nop

2013-08-26 Thread Ulrich Lauther
On Mon, Aug 26, 2013 at 12:41:53PM -0400, Peter Schaffter wrote: > > I don't know how ms handles this, but with mom, use the ADD_SPACE > macro after NEWPAGE. > > .NEWPAGE > .ADD_SPACE 5v > text2 > > ADD_SPACE exists precisely to solve the problem you're encountering. > It's documented in section

Re: [Groff] question about .rs and .nop

2013-08-26 Thread Peter Schaffter
On Mon, Aug 26, 2013, Ulrich Lauther wrote: > I cannot reproduce the problem with plain groff, but came across it when > using macro packages like mm or mom. > > This demonstrates the problem: > > .PRINTSTYLE TYPESET > .HEADER_LEFT "top" > .START > text1 > .NEWPAGE > .br > .rs > .br > .sp 5 > te

Re: [Groff] question about .rs and .nop

2013-08-26 Thread Peter Schaffter
On Mon, Aug 26, 2013, Ulrich Lauther wrote: > I cannot reproduce the problem with plain groff, but came across it when > using macro packages like mm or mom. > > This demonstrates the problem: > > .PRINTSTYLE TYPESET > .HEADER_LEFT "top" > .START > text1 > .NEWPAGE > .br > .rs > .br > .sp 5 > te

Re: [Groff] question about .rs and .nop

2013-08-26 Thread Peter Schaffter
On Mon, Aug 26, 2013, Werner Lemberg wrote: > It seems that after the top header trap mom plants other, probably > unused vertical traps. If you explicitly disable them with the > .vpt command (see below), `rs' works just fine. Which, with a few refinements, is what the ADD_SPACE macro does. See

Re: [Groff] question about .rs and .nop

2013-08-26 Thread Werner LEMBERG
> I cannot reproduce the problem with plain groff, but came across it > when using macro packages like mm or mom. > > This demonstrates the problem: > > .PRINTSTYLE TYPESET > .HEADER_LEFT "top" > .START > text1 > .NEWPAGE > .br > .rs > .br > .sp 5 > text2 > .NEWPAGE > text3 > .NEWPAGE > foo > .

Re: [Groff] question about .rs and .nop

2013-08-26 Thread Ulrich Lauther
On Mon, Aug 26, 2013 at 01:21:34AM +0200, Werner LEMBERG wrote: > > >> The groff manual says: > >> > >> .rs Restore spacing; turn no-space mode off. > >> > >> However, > >> .rs > >> .sp 3 > >> does not work; one has to output some text first, to get .sp to > >> work. > > I don't under