(no message)
[unix-history] / usr / src / share / me / float.me
CommitLineData
84f25a89 1.nr _0 \n(c.
dd61075d 2.\" @(#)float.me 1.5 %G%
84f25a89
EA
3.de (z \" *** begin floating keep
4.@D 4 \\$1 \\$2
5.@(
6.nr ?T 0
7..
8.de )z \" *** end floating keep
9.sp \\n(zsu
10.@)
11.rr _0
12.if !\\n(?b \
13. nr dn +(\\n(ppu*\\n($ru)/2u+\\n(zsu
dd61075d 14.nr dl -\n(.H \" fudge factor necessary to make it work
9271e56c 15.ie ((\\n(dn+\n(.V)>=\\n(.t):(\\n(?a):((\\n(dl>\\n($l)&(\\n($c>1)) \
84f25a89
EA
16\{\
17. nr ?a 1
9271e56c
EA
18. if (\\n(dl>\\n($l)&(\\n($m>1) \
19. nr ?w 1 \" mark wider than one column (top)
84f25a89
EA
20. ds |x |t
21.\}
22.el \
23\{\
24. nr ?b 1
9271e56c
EA
25. if (\\n(dl>\\n($l)&(\\n($m>1) \
26. nr ?W 1 \" mark wider than one column (bottom)
84f25a89
EA
27. nr _b +\\n(dnu
28. ch @f -\\n(_bu
29. ds |x |b
30.\}
31.da \\*(|x \" copy to save macro
32.nf
33.ls 1
34.nr ?k 1
35\!.if \\\\n(nl>(\\\\n(tm+2v) .ne \\n(dnu-\\n(zsu
36.eo
37.cc @
38@|k \" and the body
39@cc
40.ec
41.nr ?k 0
42.rm |k \" remove the temp macro
43.da
44.in 0
45.ls 1
46.xl \\n($lu
47.ev
48..
49.de @k \" --- output floating keep
50.ev 1
51.nf
52.ls 1
53.in 0
54.sp \\n(zsu
55.\\$1
56.ec
57.br
58.rm \\$1
59.ev
60.nr ?T 0
61..
62.nr c. \n(_0