groff
[Top][All Lists]
Advanced

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

Re: [Groff] Re: pagesize for terminal output


From: Anton Shepelev
Subject: Re: [Groff] Re: pagesize for terminal output
Date: Wed, 2 Mar 2011 17:32:29 +0300

Werner Lemberg:

> > And  the  rationale  is  exactly  what you said:
> > paper sizes and screen sizes do  not  mix  prop-
> > erly; so it may be useful to ignore a length and
> > leave the "page break" to a pager.
>
> Exactly.  For man pages this is done like this  by
> default.

And  exactly  in the same way, using an end-of-input
trap:

     .de1 an-end
     .  nr % 1
     .  pl +4v
     .  fl
     .  sp 3
     .  an-p-footer
     .  pl \\n[nl]u \" <- trim page length
     ..
     [...]
     .if \n[cR] .em an-end \"<- Turn on single-page mode if cR > 0

So, this behavior can controlled via the  cR  number
register,  and  you can set number registers on com-
mand-line when invoking groff with the -r option.

Anton



reply via email to

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