3 .\" Copyright (C) 1989, 1990, 1991, 1992, 2001 Free Software Foundation, Inc.
4 .\" Written by James Clark (jjc@jclark.com)
6 .\" This file is part of groff.
8 .\" groff is free software; you can redistribute it and/or modify it under
9 .\" the terms of the GNU General Public License as published by the Free
10 .\" Software Foundation; either version 2, or (at your option) any later
13 .\" groff is distributed in the hope that it will be useful, but WITHOUT ANY
14 .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 .\" You should have received a copy of the GNU General Public License along
19 .\" with groff; see the file COPYING. If not, write to the Free Software
20 .\" Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 .\" -rcR=1 => Create a single, very long page instead of multiple pages.
23 .\" Useful for online display. Default in nroff mode.
24 .\" Desactivate with -rcR=0.
25 .\" -rC1 => Number pages continuously, rather than start each at 1.
26 .\" -rD1 => Double-sided printing, ie different odd and even page footers.
27 .\" -rPnnn => Number first page nnn.
28 .\" -rSxx => Use size `xx'pt (either 10, 11, or 12) for document rather
29 .\" than the default size of 10pt.
30 .\" -rXnnn => Number pages after nnn as nnna, nnnb, nnnc, ...
32 .\" The file man.local is loaded at the end. Put local additions there.
33 .\" If you need to add things to TH, use `.am TH'.
36 .if !\n(.g .ab These man macros work only with groff.
44 .\" we must use consecutive page numbers when using postscript to generate
45 .\" html images, and we must not reset the page number at the beginning
46 .\" (the `ps4html' register is automatically added to the command line by
47 .\" the pre-html preprocessor)
56 .if '\*(.T'html' .nr an-html 1
57 .if \n[an-html] .nr C 1
61 . nr an-margin \\n[IN]
64 .\" .TH title section extra1 extra2 extra3
72 . de an-init \" We have to do it like this to get multiple man pages right.
76 . ie (\\n[.$] > 3) .ds an-extra2 "\\$4
77 . el .ds an-extra2 \"Sun Release 4.0
78 . ie (\\n[.$] > 4) .ds an-extra3 "\\$5
79 . el .ds an-extra3 \"System Programmer's Manual
85 . nr PS 10z \" default point size
90 . \" use sizes similar to LaTeX
92 . ie (\\n[S] == 11) \{\
99 . if (\\n[S] == 12) \{\
113 . nr SN 3n \" the indentation of sub-sub-headings relative to sub-headings
116 . nr an-prevailing-indent \\n[IN]
119 . nr an-no-space-flag 0
128 . wh -.5i an-p-footer
130 . if (\\n[nl] > 0) \{\
131 . ie \\n[C] .bp (\\n[%] + 1)
138 . ta T .5i \" This sets tabs every .5 inches
142 . ie \\n[.$] .nr PD (v;\\$1)
143 . el .nr PD (.4v >? \n[.V])
156 . tl '\\*[an-title](\\*[an-section])'\\*[an-extra3]'\\*[an-title](\\*[an-section])'
176 . ie \\n[an-html] \{\
183 . if (\\n[%] > \\n[X]) \{\
184 . nr an-page-letter (\\n[%] - \\n[X])
185 . ds an-page-string \\n[X]\\n[an-page-letter]
190 . ds an-page-string "\\*[an-title](\\*[an-section])
192 . ds an-page-string \\n[%]
196 . if o .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
197 . if e .tl '\\*[an-page-string]'\\*[an-extra1]'\\*[an-extra2]'
200 . tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
213 .if \n[cR] .em an-end
219 . nr an-prevailing-indent \\n[IN]
223 . HTML-TAG ".NH \\n[an-level]"
225 . nr an-no-space-flag 1
229 . if !\\n[cR] .ne (2v + 1u)
237 . nr an-prevailing-indent \\n[IN]
242 . nr an-no-space-flag 1
246 . if !\\n[cR] .ne (2v + 1u)
277 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
279 . if !\\n[an-div?] .di an-div
280 . ie \\n[an-html] .in \\n[an-margin]u
283 . ll -\\n[an-margin]u
292 . if \\n[an-break-flag] \{\
296 . if \\n[an-no-space-flag] \{\
298 . nr an-no-space-flag 0
300 . if \\n[an-div?] .an-do-tag
308 . ie (\\n[dl] + \\n[an-tag-sep] > \\n[an-prevailing-indent]) \{\
310 . if !\\n[cR] .ne (2v + 1u)
313 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
316 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
317 . ti -\\n[an-prevailing-indent]u
319 . if !\\n[cR] .ne (1v + 1u)
320 \\*[an-div]\\h'|\\n[an-prevailing-indent]u'\c
331 . nr an-prevailing-indent \\n[IN]
343 . if !\\n[cR] .ne (1v + 1u)
344 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
347 . ie (\\n[.$] - 1) .TP "\\$2"
358 . if !\\n[cR] .ne (1v + 1u)
359 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
360 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
364 .ds an-empty \" this is referenced to avoid looping on eg .RB ( \\ )
368 . ds an-result \&\\$1
370 . while (\\n[.$] >= 2) \{\
371 . as an-result \,\f[I]\\$1\f[R]\/\\$2\\*[an-empty]
374 . if \\n[.$] .as an-result \,\f[I]\\$1\f[R]
381 . ds an-result \&\f[I]\\$1\f[R]
383 . while (\\n[.$] >= 2) \{\
384 . as an-result \/\\$1\f[I]\,\\$2\f[R]
387 . if \\n[.$] .as an-result \/\\$1
394 . ds an-result \&\f[I]\\$1
396 . while (\\n[.$] >= 2) \{\
397 . as an-result \/\f[B]\\$1\f[I]\,\\$2\\*[an-empty]
400 . if \\n[.$] .as an-result \/\f[B]\\$1
408 . ds an-result \&\f[B]\\$1
410 . while (\\n[.$] >= 2) \{\
411 . as an-result \,\f[I]\\$1\f[B]\/\\$2\\*[an-empty]
414 . if \\n[.$] .as an-result \,\f[I]\\$1
422 . while (\\n[.$] >= 2) \{\
423 . as an-result \f[R]\\$1\f[B]\\$2\\*[an-empty]
426 . if \\n[.$] .as an-result \f[R]\\$1
433 . while (\\n[.$] >= 2) \{\
434 . as an-result \f[B]\\$1\f[R]\\$2\\*[an-empty]
437 . if \\n[.$] .as an-result \f[B]\\$1
444 . nr an-saved-margin\\n[an-level] \\n[an-margin]
445 . nr an-saved-prevailing-indent\\n[an-level] \\n[an-prevailing-indent]
446 . ie \\n[.$] .nr an-margin +(n;\\$1)
447 . el .nr an-margin +\\n[an-prevailing-indent]
449 . nr an-prevailing-indent \\n[IN]
455 . ie \\n[.$] .nr an-level ((;\\$1) <? \\n[an-level])
457 . nr an-level (1 >? \\n[an-level])
458 . nr an-margin \\n[an-saved-margin\\n[an-level]]
459 . nr an-prevailing-indent \\n[an-saved-prevailing-indent\\n[an-level]]
464 .ie c\[rg] .ds R \[rg]
466 .ie c\[tm] .ds Tm \[tm]
471 .if !\n[an-html] .hy 14
473 .\" Load local modifications.
478 .\" end of an-old.tmac