Commit | Line | Data |
---|---|---|
84f25a89 | 1 | .nr _0 \n(c. |
a3fd506b | 2 | .\" @(#)float.me 2.4 (Berkeley) %G% |
70e37822 KB |
3 | .\" |
4 | .\" Copyright (c) 1988 Regents of the University of California. | |
5 | .\" All rights reserved. | |
6 | .\" | |
7 | .\" Redistribution and use in source and binary forms are permitted | |
8 | .\" provided that this notice is preserved and that due credit is given | |
9 | .\" to the University of California at Berkeley. The name of the University | |
10 | .\" may not be used to endorse or promote products derived from this | |
11 | .\" software without specific prior written permission. This software | |
12 | .\" is provided ``as is'' without express or implied warranty. | |
a3fd506b | 13 | .\" %beginstrip% |
70e37822 | 14 | .\" |
84f25a89 | 15 | .de (z \" *** begin floating keep |
799e5a57 | 16 | .if \n@>4 .tm >> (z, .z=\n(.z |
84f25a89 EA |
17 | .@D 4 \\$1 \\$2 |
18 | .@( | |
19 | .nr ?T 0 | |
20 | .. | |
21 | .de )z \" *** end floating keep | |
799e5a57 | 22 | .if \n@>4 .tm >> )z, .z=\n(.z |
84f25a89 EA |
23 | .sp \\n(zsu |
24 | .@) | |
799e5a57 | 25 | .if \n@>4 .tm -- )z << @), .z=\n(.z |
84f25a89 EA |
26 | .rr _0 |
27 | .if !\\n(?b \ | |
28 | . nr dn +(\\n(ppu*\\n($ru)/2u+\\n(zsu | |
dd61075d | 29 | .nr dl -\n(.H \" fudge factor necessary to make it work |
9271e56c | 30 | .ie ((\\n(dn+\n(.V)>=\\n(.t):(\\n(?a):((\\n(dl>\\n($l)&(\\n($c>1)) \ |
84f25a89 EA |
31 | \{\ |
32 | . nr ?a 1 | |
9271e56c EA |
33 | . if (\\n(dl>\\n($l)&(\\n($m>1) \ |
34 | . nr ?w 1 \" mark wider than one column (top) | |
84f25a89 EA |
35 | . ds |x |t |
36 | .\} | |
37 | .el \ | |
38 | \{\ | |
39 | . nr ?b 1 | |
9271e56c EA |
40 | . if (\\n(dl>\\n($l)&(\\n($m>1) \ |
41 | . nr ?W 1 \" mark wider than one column (bottom) | |
84f25a89 EA |
42 | . nr _b +\\n(dnu |
43 | . ch @f -\\n(_bu | |
44 | . ds |x |b | |
45 | .\} | |
46 | .da \\*(|x \" copy to save macro | |
47 | .nf | |
48 | .ls 1 | |
49 | .nr ?k 1 | |
799e5a57 | 50 | .if \n@>4 .tm -- )z >> \\*(|x |
84f25a89 | 51 | \!.if \\\\n(nl>(\\\\n(tm+2v) .ne \\n(dnu-\\n(zsu |
799e5a57 | 52 | .|k\" \" and the body |
84f25a89 | 53 | .ec |
799e5a57 | 54 | .if \n@>4 .tm -- )z << \\*(|x, .z=\\n(.z |
84f25a89 | 55 | .nr ?k 0 |
799e5a57 | 56 | .rm |k\" \" remove the temp macro |
84f25a89 EA |
57 | .da |
58 | .in 0 | |
59 | .ls 1 | |
60 | .xl \\n($lu | |
61 | .ev | |
799e5a57 | 62 | .if \n@>4 .tm << )z, .z=\\n(.z |
84f25a89 EA |
63 | .. |
64 | .de @k \" --- output floating keep | |
799e5a57 | 65 | .if \n@>4 .tm >> @k, $1=\\$1, .z=\\n(.z |
84f25a89 EA |
66 | .ev 1 |
67 | .nf | |
68 | .ls 1 | |
69 | .in 0 | |
70 | .sp \\n(zsu | |
71 | .\\$1 | |
72 | .ec | |
73 | .br | |
74 | .rm \\$1 | |
75 | .ev | |
76 | .nr ?T 0 | |
77 | .. | |
78 | .nr c. \n(_0 |