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