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 .\" -rSxx => use size `xx'pt (either 10, 11, or 12) for document rather
24 .\" than the default size of 10pt
25 .\" -rXnnn => number pages after nnn as nnna, nnnb, nnnc, ...
27 .\" The file man.local is loaded at the end. Put local additions there.
28 .\" If you need to add things to TH, use `.am TH'.
31 .if !\n(.g .ab These man macros work only with groff.
42 . nr an-margin \\n[IN]
45 .\" .TH title section extra1 extra2 extra3
49 . de an-init \" We have to do it like this to get multiple man pages right.
53 . ie \\n[.$]>3 .ds an-extra2 "\\$4
54 . el .ds an-extra2 \"Sun Release 4.0
55 . ie \\n[.$]>4 .ds an-extra3 "\\$5
56 . el .ds an-extra3 \"System Programmer's Manual
62 .\" use sizes similar to LaTeX
77 . nr PS 10z \" default point size
87 . ie '\*(.T'html' .nr IN 1.2i
91 . nr SN 3n \" the indentation of sub-sub-headings relative to sub-headings
94 . nr an-prevailing-indent \\n[IN]
97 . nr an-no-space-flag 0
103 . wh -.5i an-p-footer
105 . if (\\n[nl] > 0) \{\
106 . ie \\nC .bp (\\n% + 1)
112 . ta T .5i \" This sets tabs every .5 inches
116 . ie \\n[.$] .nr PD (v;\\$1)
117 . el .nr PD (.4v >? \n[.V])
129 . tl '\\*[an-title](\\*[an-section])'\\*[an-extra3]'\\*[an-title](\\*[an-section])'
146 . ie '\*(.T'html' \{\
147 . ds an-page-string "
152 . ds an-page-string \\n%
154 . if (\\n% > \\nX) \{\
155 . nr an-page-letter (\\n% - \\nX)
156 . ds an-page-string \\nX\\n[an-page-letter]
163 . if o .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
164 . if e .tl '\\*[an-page-string]'\\*[an-extra1]'\\*[an-extra2]'
167 . tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
176 . nr an-prevailing-indent \\n[IN]
181 . nr an-no-space-flag 1
193 . nr an-prevailing-indent \\n[IN]
198 . nr an-no-space-flag 1
233 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
235 . if !\\n[an-div?] .di an-div
244 . if \\n[an-break-flag] \{\
248 . if \\n[an-no-space-flag] \{\
250 . nr an-no-space-flag 0
252 . if \\n[an-div?] .an-do-tag
259 . ie (\\n[dl] + \\n[an-tag-sep] > \\n[an-prevailing-indent]) \{\
264 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
267 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
268 . ti -\\n[an-prevailing-indent]u
271 \\*[an-div]\\h'|\\n[an-prevailing-indent]u'\c
282 . nr an-prevailing-indent \\n[IN]
295 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
298 . ie (\\n[.$] - 1) .TP "\\$2"
310 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
311 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
315 .ds an-empty \" this is referenced to avoid looping on eg .RB ( \\ )
319 . ds an-result \&\\$1
321 . while (\\n[.$] >= 2) \{\
322 . as an-result \,\fI\\$1\fR\/\\$2\\*[an-empty]
325 . if \\n[.$] .as an-result \,\fI\\$1\fR
332 . ds an-result \&\fI\\$1\fR
334 . while (\\n[.$] >= 2) \{\
335 . as an-result \/\\$1\fI\,\\$2\fR
338 . if \\n[.$] .as an-result \/\\$1
345 . ds an-result \&\fI\\$1
347 . while (\\n[.$] >= 2) \{\
348 . as an-result \/\fB\\$1\fI\,\\$2\\*[an-empty]
351 . if \\n[.$] .as an-result \/\fB\\$1
359 . ds an-result \&\fB\\$1
361 . while (\\n[.$] >= 2) \{\
362 . as an-result \,\fI\\$1\fB\/\\$2\\*[an-empty]
365 . if \\n[.$] .as an-result \,\fI\\$1
373 . while (\\n[.$] >= 2) \{\
374 . as an-result \fR\\$1\fB\\$2\\*[an-empty]
377 . if \\n[.$] .as an-result \fR\\$1
384 . while (\\n[.$] >= 2) \{\
385 . as an-result \fB\\$1\fR\\$2\\*[an-empty]
388 . if \\n[.$] .as an-result \fB\\$1
395 . nr an-saved-margin\\n[an-level] \\n[an-margin]
396 . nr an-saved-prevailing-indent\\n[an-level] \\n[an-prevailing-indent]
397 . ie \\n[.$] .nr an-margin +(n;\\$1)
398 . el .nr an-margin +\\n[an-prevailing-indent]
400 . nr an-prevailing-indent \\n[IN]
406 . ie \\n[.$] .nr an-level ((;\\$1) <? \\n[an-level])
408 . nr an-level (1 >? \\n[an-level])
409 . nr an-margin \\n[an-saved-margin\\n[an-level]]
410 . nr an-prevailing-indent \\n[an-saved-prevailing-indent\\n[an-level]]
415 .ie c\[rg] .ds R \[rg]
417 .ie c\[tm] .ds Tm \[tm]
424 .\" Load local modifications.