Remove advertising header from share/
[dragonfly.git] / share / me / float.me
1 .nr _0 \n(c.
2 .\" Copyright (c) 1988, 1993
3 .\"     The Regents of the University of California.  All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of the University nor the names of its contributors
14 .\"    may be used to endorse or promote products derived from this software
15 .\"    without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" SUCH DAMAGE.
28 .\"
29 .\"     @(#)float.me    8.1 (Berkeley) 6/5/93
30 .\"
31 .\"     %beginstrip%
32 .\"
33 .de (z                  \" *** begin floating keep
34 .if \n@>4 .tm >> (z, .z=\n(.z
35 .@D 4 \\$1 \\$2
36 .@(
37 .nr ?T 0
38 ..
39 .de )z                  \" *** end floating keep
40 .if \n@>4 .tm >> )z, .z=\n(.z
41 .sp \\n(zsu
42 .@)
43 .if \n@>4 .tm -- )z << @), .z=\n(.z
44 .rr _0
45 .if !\\n(?b \
46 .       nr dn +(\\n(ppu*\\n($ru)/2u+\\n(zsu
47 .nr dl -\n(.H                   \" fudge factor necessary to make it work
48 .ie ((\\n(dn+\n(.V)>=\\n(.t):(\\n(?a):((\\n(dl>\\n($l)&(\\n($c>1)) \
49 \{\
50 .       nr ?a 1
51 .       if (\\n(dl>\\n($l)&(\\n($m>1) \
52 .               nr ?w 1         \" mark wider than one column (top)
53 .       ds |x |t
54 .\}
55 .el \
56 \{\
57 .       nr ?b 1
58 .       if (\\n(dl>\\n($l)&(\\n($m>1) \
59 .               nr ?W 1         \" mark wider than one column (bottom)
60 .       nr _b +\\n(dnu
61 .       ch @f -\\n(_bu
62 .       ds |x |b
63 .\}
64 .da \\*(|x                      \" copy to save macro
65 .nf
66 .ls 1
67 .nr ?k 1
68 .if \n@>4 .tm -- )z >> \\*(|x
69 \!.if \\\\n(nl>(\\\\n(tm+2v) .ne \\n(dnu-\\n(zsu
70 .|k\"                           \" and the body
71 .ec
72 .if \n@>4 .tm -- )z << \\*(|x, .z=\\n(.z
73 .nr ?k 0
74 .rm |k\"                        \" remove the temp macro
75 .da
76 .in 0
77 .ls 1
78 .xl \\n($lu
79 .ev
80 .if \n@>4 .tm << )z, .z=\\n(.z
81 ..
82 .de @k                  \" --- output floating keep
83 .if \n@>4 .tm >> @k, $1=\\$1, .z=\\n(.z
84 .ev 1
85 .nf
86 .ls 1
87 .in 0
88 .sp \\n(zsu
89 .\\$1
90 .ec
91 .br
92 .rm \\$1
93 .ev
94 .nr ?T 0
95 ..
96 .nr c. \n(_0