groff
[Top][All Lists]
Advanced

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

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


From: Peter Schaffter
Subject: Re: [Groff] question about .rs and .nop
Date: Tue, 3 Sep 2013 13:18:55 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Aug 27, 2013, Tadziu Hoffmann wrote:
> Otherwise, how would you do it?  Well, the section macro could
> perhaps query register "nl" (vertical position of last printed
> text base-line), but that may be a bit chancy (depending on,
> for example, whether you output or not a page header on that
> page).  Or the new-page macro could set a flag to indicate
> that a new page has just been started, and that flag could be
> queried by the section macros.  However, you would then also
> need a mechanism to automatically reset the flag once text
> has been output.  This could be achieved by setting a trap
> at the top which is sprung once text is actually printed.
> (And it appears mom is trying to do exactly that.)

Indeed, this is what mom's @TOP register is for, with a trap to
reset the flag.

-- 
Peter Schaffter
http://www.schaffter.ca



reply via email to

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