1 .\"Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
2 .\" Written by James Clark (jjc@jclark.uucp)
4 .\"This file is part of groff.
6 .\"groff is free software; you can redistribute it and/or modify it under
7 .\"the terms of the GNU General Public License as published by the Free
8 .\"Software Foundation; either version 1, or (at your option) any later
11 .\"groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 .\"WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 .\"FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 .\"You should have received a copy of the GNU General Public License along
17 .\"with groff; see the file LICENSE. If not, write to the Free Software
18 .\"Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 .\" -rC1 => number pages continuously, rather than start each at 1
21 .\" -rD1 => double-sided printing, ie different odd and even page footers
22 .\" -rPnnn => number first page nnn
23 .\" -rXnnn => number pages after nnn as nnna, nnnb, nnnc, ...
25 .if !\n(.g .ab These man macros work only with groff.
27 . tm Warning: turning off compatibility mode
33 .\" .TH title section extra1 extra2 extra3
35 .de an-init \" We have to do it like this to get multiple man pages right.
39 .ie \\n[.$]>3 .ds an-extra2 "\\$4
40 .el .ds an-extra2 \"Sun Release 4.0
41 .ie \\n[.$]>4 .ds an-extra3 "\\$5
42 .el .ds an-extra3 \"UNIX Programmer's Manual
49 .nr PS 10 \" normal point-size
50 .nr SN 3n \" the indentation of sub-sub-headings relative to sub-headings
53 .nr an-prevailing-indent \\n[IN]
55 .nr an-no-space-flag 0
64 .ta T .5i \" This sets tabs every .5 inches
67 .ie \\n[.$] .nr PD (v;\\$1)
68 .el .nr PD .4v>?\n[.V]
75 .tl '\\*[an-title](\\*[an-section])'\\*[an-extra3]'\\*[an-title](\\*[an-section])'
88 .ds an-page-string \\n%
91 . nr an-page-letter \\n%-\\nX
92 . ds an-page-string \\nX\\n[an-page-letter]
95 . if o .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
96 . if e .tl '\\*[an-page-string]'\\*[an-extra1]'\\*[an-extra2]'
98 .el .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
104 .nr an-margin \\n[IN]
105 .nr an-prevailing-indent \\n[IN]
110 .nr an-no-space-flag 1
120 .nr an-margin \\n[IN]
121 .nr an-prevailing-indent \\n[IN]
126 .nr an-no-space-flag 1
160 .if \\n[.$] .nr an-prevailing-indent (n;\\$1)
169 .if \\n[an-break-flag] \{\
173 .if \\n[an-no-space-flag] \{\
175 . nr an-no-space-flag 0
177 .if \\n[an-div?] .an-do-tag
183 .in \\n[an-margin]u+\\n[an-prevailing-indent]u
184 .ti -\\n[an-prevailing-indent]u
185 .ie \\n[dl]+\\n[an-tag-sep]>\\n[an-prevailing-indent] \{\
193 \\*[an-div]\\h'|\\n[an-prevailing-indent]u'\c
202 .nr an-prevailing-indent \\n[IN]
212 . in \\n[an-margin]u+\\n[an-prevailing-indent]u
215 . ie \\n[.$]-1 .TP "\\$2"
225 .if \\n[.$] .nr an-prevailing-indent (n;\\$1)
226 .in \\n[an-margin]u+\\n[an-prevailing-indent]u
231 . ds an-result \&\\$1
233 . while \\n[.$]>=2 \{\
234 . as an-result \,\fI\\$1\fR\/\\$2
237 . if \\n[.$] .as an-result \,\fI\\$1\fR
243 . ds an-result \&\fI\\$1\fR
245 . while \\n[.$]>=2 \{\
246 . as an-result \/\\$1\fI\,\\$2\fR
249 . if \\n[.$] .as an-result \/\\$1
255 . ds an-result \&\fI\\$1
257 . while \\n[.$]>=2 \{\
258 . as an-result \/\\fB\\$1\fI\,\\$2
261 . if \\n[.$] .as an-result \/\\fB\\$1
268 . ds an-result \&\fB\\$1
270 . while \\n[.$]>=2 \{\
271 . as an-result \,\fI\\$1\fB\/\\$2
274 . if \\n[.$] .as an-result \,\fI\\$1
281 .while \\n[.$]>=2 \{\
282 . as an-result \fR\\$1\fB\\$2
285 .if \\n[.$] .as an-result \fR\\$1
291 .while \\n[.$]>=2 \{\
292 . as an-result \fB\\$1\fR\\$2
295 .if \\n[.$] .as an-result \fB\\$1
301 .nr an-saved-margin\\n[an-level] \\n[an-margin]
302 .nr an-saved-prevailing-indent\\n[an-level] \\n[an-prevailing-indent]
303 .ie \\n[.$] .nr an-margin +(n;\\$1)
304 .el .nr an-margin +\\n[an-prevailing-indent]
306 .nr an-prevailing-indent \\n[IN]
311 .ie \\n[.$] .nr an-level (;\\$1)<?\\n[an-level]
313 .nr an-level 1>?\\n[an-level]
314 .nr an-margin \\n[an-saved-margin\\n[an-level]]
315 .nr an-prevailing-indent \\n[an-saved-prevailing-indent\\n[an-level]]
319 .ie c\[rg] .ds R \[rg]
321 .ie c\[tm] .ds T \[tm]