1 .\"Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
2 .\" Written by James Clark (jjc@jclark.com)
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 2, 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 COPYING. If not, write to the Free Software
18 .\"Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 .\" The file man.local is loaded at the end. Put local additions there.
26 .\" If you need to add things to TH, use `.am TH'.
28 .if !\n(.g .ab These man macros work only with groff.
35 . nr an-margin \\n[IN]
37 .\" .TH title section extra1 extra2 extra3
40 .de an-init \" We have to do it like this to get multiple man pages right.
44 .ie \\n[.$]>3 .ds an-extra2 "\\$4
45 .el .ds an-extra2 \"Sun Release 4.0
46 .ie \\n[.$]>4 .ds an-extra3 "\\$5
47 .el .ds an-extra3 \"System Programmer's Manual
59 .nr PS 10 \" normal point-size
60 .nr SN 3n \" the indentation of sub-sub-headings relative to sub-headings
63 .nr an-prevailing-indent \\n[IN]
65 .nr an-no-space-flag 0
77 .ta T .5i \" This sets tabs every .5 inches
80 .ie \\n[.$] .nr PD (v;\\$1)
81 .el .nr PD .4v>?\n[.V]
91 . tl '\\*[an-title](\\*[an-section])'\\*[an-extra3]'\\*[an-title](\\*[an-section])'
104 . ds an-page-string "
108 .el .ds an-page-string \\n%
111 . nr an-page-letter \\n%-\\nX
112 . ds an-page-string \\nX\\n[an-page-letter]
115 . if o .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
116 . if e .tl '\\*[an-page-string]'\\*[an-extra1]'\\*[an-extra2]'
118 .el .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
128 .nr an-prevailing-indent \\n[IN]
133 .nr an-no-space-flag 1
144 .nr an-prevailing-indent \\n[IN]
149 .nr an-no-space-flag 1
179 .if \\n[.$] .nr an-prevailing-indent (n;\\$1)
181 .if !\\n[an-div?] .di an-div
188 .if \\n[an-break-flag] \{\
192 .if \\n[an-no-space-flag] \{\
194 . nr an-no-space-flag 0
196 .if \\n[an-div?] .an-do-tag
202 .ie \\n[dl]+\\n[an-tag-sep]>\\n[an-prevailing-indent] \{\
207 . in \\n[an-margin]u+\\n[an-prevailing-indent]u
210 . in \\n[an-margin]u+\\n[an-prevailing-indent]u
211 . ti -\\n[an-prevailing-indent]u
214 \\*[an-div]\\h'|\\n[an-prevailing-indent]u'\c
223 .nr an-prevailing-indent \\n[IN]
233 . in \\n[an-margin]u+\\n[an-prevailing-indent]u
236 . ie \\n[.$]-1 .TP "\\$2"
246 .if \\n[.$] .nr an-prevailing-indent (n;\\$1)
247 .in \\n[an-margin]u+\\n[an-prevailing-indent]u
250 .ds an-empty \" this is referenced to avoid looping on eg .RB ( \\ )
253 . ds an-result \&\\$1
255 . while \\n[.$]>=2 \{\
256 . as an-result \,\fI\\$1\fR\/\\$2\\*[an-empty]
259 . if \\n[.$] .as an-result \,\fI\\$1\fR
265 . ds an-result \&\fI\\$1\fR
267 . while \\n[.$]>=2 \{\
268 . as an-result \/\\$1\fI\,\\$2\fR
271 . if \\n[.$] .as an-result \/\\$1
277 . ds an-result \&\fI\\$1
279 . while \\n[.$]>=2 \{\
280 . as an-result \/\\fB\\$1\fI\,\\$2\\*[an-empty]
283 . if \\n[.$] .as an-result \/\\fB\\$1
290 . ds an-result \&\fB\\$1
292 . while \\n[.$]>=2 \{\
293 . as an-result \,\fI\\$1\fB\/\\$2\\*[an-empty]
296 . if \\n[.$] .as an-result \,\fI\\$1
303 .while \\n[.$]>=2 \{\
304 . as an-result \fR\\$1\fB\\$2\\*[an-empty]
307 .if \\n[.$] .as an-result \fR\\$1
313 .while \\n[.$]>=2 \{\
314 . as an-result \fB\\$1\fR\\$2\\*[an-empty]
317 .if \\n[.$] .as an-result \fB\\$1
323 .nr an-saved-margin\\n[an-level] \\n[an-margin]
324 .nr an-saved-prevailing-indent\\n[an-level] \\n[an-prevailing-indent]
325 .ie \\n[.$] .nr an-margin +(n;\\$1)
326 .el .nr an-margin +\\n[an-prevailing-indent]
328 .nr an-prevailing-indent \\n[IN]
333 .ie \\n[.$] .nr an-level (;\\$1)<?\\n[an-level]
335 .nr an-level 1>?\\n[an-level]
336 .nr an-margin \\n[an-saved-margin\\n[an-level]]
337 .nr an-prevailing-indent \\n[an-saved-prevailing-indent\\n[an-level]]
341 .ie c\[rg] .ds R \[rg]
343 .ie c\[tm] .ds Tm \[tm]
348 .\" Load local modifications.