Don't use .Xo/.Xc to workaround ancient macro argument limit.
[netbsd-mini2440.git] / share / me / sh.me
blobabd17e23b1a557bb8185044034e5c86256942d68
1 .\"     $NetBSD: sh.me,v 1.2 1997/07/07 19:19:33 phil Exp $
2 .\"
3 .nr _0 \n(c.
4 .\" Copyright (c) 1988, 1993
5 .\"     The Regents of the University of California.  All rights reserved.
6 .\"
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
9 .\" are met:
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\"    notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\"    notice, this list of conditions and the following disclaimer in the
14 .\"    documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the University nor the names of its contributors
16 .\"    may be used to endorse or promote products derived from this software
17 .\"    without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .\"     @(#)sh.me       8.1 (Berkeley) 6/5/93
32 .\"
33 .\"     %beginstrip%
34 .\"
35 .de sh                  \" *** section heading
36 .fi
37 .if (\\n(si>0)&(\\n(si<1n) \
38 .       nr si \\n(sin
39 .ce 0
40 .@d "\\$1" +1 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
41 .if !"\\$2"_" \
42 \{\
43 .       ds |n \&\\$2
44 .       $p "\\*(|n" "\\*($n" \\n($0
45 .       $0 "\\*(|n" "\\*($n" \\n($0
46 .       rm |n
47 .\}
48 .nr $p 0 1                      \" reset .np count
50 .de @d                  \" --- change section depth
51 .if !""\\$1" \
52 .       nr $0 \\$1
53 .if \\n($0&(\\n(.$>1) \
54 .       nr $\\n($0 \\$2
55 .ds $n \&\"
56 .ie \\n($0>=1 \
57 \{\
58 .       if '\\n($1'0' \
59 .               nr $1 1
60 .       if (\\n(.$>=3) .if !"\\$3"-" \
61 .               nr $1 \\$3
62 .       as $n \\n($1
63 .\}
64 .el \
65 .       nr $1 0
66 .ie \\n($0>=2 \
67 \{\
68 .       if '\\n($2'0' \
69 .               nr $2 1
70 .       if (\\n(.$>=4) .if !"\\$4"-" \
71 .               nr $2 \\$4
72 .       as $n .\\n($2
73 .\}
74 .el \
75 .       nr $2 0
76 .ie \\n($0>=3 \
77 \{\
78 .       if '\\n($3'0' \
79 .               nr $3 1
80 .       if (\\n(.$>=5) .if !"\\$5"-" \
81 .               nr $3 \\$5
82 .       as $n .\\n($3
83 .\}
84 .el \
85 .       nr $3 0
86 .ie \\n($0>=4 \
87 \{\
88 .       if '\\n($4'0' \
89 .               nr $4 1
90 .       if (\\n(.$>=6) .if !"\\$6"-" \
91 .               nr $4 \\$6
92 .       as $n .\\n($4
93 .\}
94 .el \
95 .       nr $4 0
96 .ie \\n($0>=5 \
97 \{\
98 .       if '\\n($5'0' \
99 .               nr $5 1
100 .       if (\\n(.$>=7) .if !"\\$7"-" \
101 .               nr $5 \\$7
102 .       as $n .\\n($5
104 .el \
105 .       nr $5 0
106 .ie \\n($0>=6 \
108 .       if '\\n($6'0' \
109 .               nr $6 1
110 .       if (\\n(.$>=8) .if !"\\$8"-" \
111 .               nr $6 \\$8
112 .       as $n .\\n($6
114 .el \
115 .       nr $6 0
117 .de sx                  \" *** heading up, no increment (2.1.1 -> 2.1)
118 .ce 0
119 .ul 0
120 .nr _0 \\n($0-1
121 .if \\n(.$ .nr _0 +1
122 .if \\n(.$ .nr _0 \\$1
123 .@d \\n(_0
124 .rr _0
125 .$p "" "" \\n($0
126 .nr $p 0 1                      \" reset .np count
128 .de uh                  \" *** unnumbered section heading
129 .$p "\\$1"
130 .$0 "\\$1"
132 .if \n(sf<=0 \
133 .       nr sf 8                 \" section font -- Times Bold
134 .if \n(sp<=0 \
135 .       nr sp 10                \" section title pointsize
136 .if \n(ss<=0 \
137 .       nr ss 12p               \" section prespacing
138 .if \n(si<=0 \
139 .       nr si 0                 \" section indent
140 .nr c. \n(_0