[comp.text] Troff Keeps

lfk@mbio.med.upenn.edu (Lee Kolakowski) (02/23/89)

I recently (yesterday) had some problems with some keeped figure
macros in a document I was writing. These were supposed to be floating
keeps set up the following way


.LP
This is text 
 .
 .
 .
.Fs 1.0i
.Fe "Test Figure
.LP
This is more
 .
 .
 .


And here are the two home-brewed macros

.\"==== Figure and Tbl Macros =======================
.\" Figure Start
.\" Called with optional distance down the page for figure
.\" ^.Fs 1.0i will space 1.0i between start and end
.de Fs
.RT
.KF
.nr Ol \\n(.L
.ls 1
.sp 2
.fl
.ti 0.5i
\\l'5.0i'
.rs
.if \\$1 \{
.	ne \\$1
.	sp \\$1 \}
..
.de Fe
.LP
.ti 0.5i
\\l'5.0i'
.sp
.bd I 3
.nr fG +1
.
.ie \\n(Se .ds fG \\*(H1-\\n(fG
.el .ds fG \\n(fG
.ce
\f3Figure \\*(fG. \\$1\\f1
.bd I
.sp 2
.LP
.ls \\n(Ol
.KE
..


This does not seem to work properly with old troff (CAT) on a Sun3
running SunOS 4.0.

The text is fine then the figure starts near the bottom of a page then
ends on the next page rather than being all together on one page.

Any ideas, bugs in my macro or other...?


--

Frank Kolakowski 
____________________________________________________________________________
|lfk@mbio.med.upenn.edu                         ||      Lee F. Kolakowski   |
|kolakowski@mscf.med.upenn.                     ||	Univ. of Penna.     |
|c/o jes@eniac.seas.upenn.edu			||	Dept of Chemistry   |
|kolakowski%c.chem.upenn.edu@relay.upenn.edu	||	231 South 34th St.  |
|kolakowski%d.chem.upenn.edu@relay.upenn.edu    ||	Phila, PA 19104     |
|bcooperman.kolakowski@bionet-20.arpa		||--------------------------|
|AT&T:	1-215-898-2927				||      One-Liner Here!     |
=============================================================================