groff
[Top][All Lists]
Advanced

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

Re: [Groff] End of file processing


From: Peter Schaffter
Subject: Re: [Groff] End of file processing
Date: Fri, 3 Jan 2014 13:25:34 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Jan 03, 2014, Werner Lemberg wrote:
> 
> > When a diversion that doesn't fit on the last page of a document and
> > has to be deferred to the next (ie a float) is followed by a few
> > lines of type that don't reach the bottom margin, processing stops
> > at the end of the text and the diversion is never output.  [...]
> 
> Minimum example, please.

.\" Begin example
.\" Minimal diversion
.de diversion
. di foo-div
. nop \fBBegin diversion
. sp 4
. nop End diversion\f[]
. br
. di
. ie \\n[dn]>\\n[.t] .nr defer 1
. el .foo-div
..
.\" Minimal header
.de header
. if !\\n[%]=1 \{\
.   sp |1i-1v
.   ce 1
.   nop \fIHeader\f[]
.   sp 2
.   if \\n[defer]=1 \{\
.    nf
.    foo-div
.   \}
. \}
..
.\" Minimal footer
.de footer
. sp |\\n[.p]u-.75i
. ce 1
\\n[%]
. bp
..
.\" Traps
.wh 0 header
.wh -1i footer
.\"
.ps 14
.ls 2
.nf
.sp |1i-1v
.nr lines 0 1
.while \n+[lines]<=23 .nop Running text
Diversion inserted after this line.
.diversion
First line after diversion inserted.
Running text
.\" End example

Use -P-pletter.  Processing stops at the end of page 1.

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



reply via email to

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