3 .\" Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004, 2005,
5 .\" Free Software Foundation, Inc.
6 .\" Written by James Clark (jjc@jclark.com)
8 .\" This file is part of groff.
10 .\" groff is free software; you can redistribute it and/or modify it under
11 .\" the terms of the GNU General Public License as published by the Free
12 .\" Software Foundation; either version 2, or (at your option) any later
15 .\" groff is distributed in the hope that it will be useful, but WITHOUT ANY
16 .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 .\" You should have received a copy of the GNU General Public License along
21 .\" with groff; see the file COPYING. If not, write to the Free Software
22 .\" Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
24 .\" -rcR=1 => Create a single, very long page instead of multiple pages.
25 .\" Useful for online display. Default in nroff mode.
26 .\" Desactivate with -rcR=0.
27 .\" -rC1 => Number pages continuously, rather than start each at 1.
28 .\" -rD1 => Double-sided printing, ie different odd and even page footers.
29 .\" -rPnnn => Number first page nnn.
30 .\" -rSxx => Use size `xx'pt (either 10, 11, or 12) for document rather
31 .\" than the default size of 10pt.
32 .\" -rXnnn => Number pages after nnn as nnna, nnnb, nnnc, ...
34 .\" The file man.local is loaded at the end. Put local additions there.
35 .\" If you need to add things to TH, use `.am1 TH'.
38 .if !\n(.g .ab These man macros work only with groff.
47 .if (\n[.x]\n[.y] < 118) \
48 . ab You need GNU troff version 1.18 or higher to run this version of man!
53 .\" we must use consecutive page numbers when using postscript to generate
54 .\" html images, and we must not reset the page number at the beginning
55 .\" (the `ps4html' register is automatically added to the command line by
56 .\" the pre-html preprocessor)
67 .\" set up the line length...
68 .\" giving precedence to any prior assignment to the \n[LL] register.
71 . \" but if that isn't predefined...
72 . \" then try to respect any prior `.ll' request.
75 . \" For troff, this is sufficient to give us a default line length of
76 . \" 6.5i, but for nroff, we prefer a default of 78n to nroff's default
77 . \" 65n. This has the unfortunate side effect that we will override a
78 . \" user's `.ll 65n' request, with our preferred 78n default; we can't
79 . \" possibly know that the 65n came from a `.ll' request, and MUST
80 . \" assume that it was set by nroff, as its built-in default! If the
81 . \" user wants to force this setting, then he MUST use the `-rLL=65n'
82 . \" option, or an equivalent `.nr LL 65n' request.
93 .\" Default heading font
99 .if '\*[.T]'html' .nr an-html 1
100 .if \n[an-html] .nr C 1
101 .if r ps4html .nr C 1
103 .\" we redefine .ne to avoid page breaks if cR is set; instead, the page
104 .\" length is increased to the necessary amount (this is needed for tables)
106 .\" similarly, we redefine .bp if cR is set, adjusting the page length to
107 .\" the current position so that no empty lines are inserted
114 . if (\\n[an-ne] >= \\n[.t]) \
115 . pl +(\\n[an-ne]u - \\n[.t]u + 1v)
127 . nr an-margin \\n[IN]
134 .\" .TH title section extra1 extra2 extra3
136 . if \\n[an-html] \{\
142 . de an-init \" We have to do it like this to get multiple man pages right.
143 . ds an-title "\\$1\"
144 . ds an-section "\\$2\"
145 . ds an-extra1 "\\$3\"
146 . ie (\\n[.$] > 3) .ds an-extra2 "\\$4\"
147 . el .ds an-extra2 \"Sun Release 4.0
148 . ie (\\n[.$] > 4) .ds an-extra3 "\\$5\"
149 . el .ds an-extra3 \"System Programmer's Manual
155 . nr PS 10z \" default point size
160 . \" use sizes similar to LaTeX
162 . ie (\\n[S] == 11) \{\
169 . if (\\n[S] == 12) \{\
182 .\" We must select an integer indentation value for nroff;
183 .\" see comment in an-do-tag.
190 . nr SN 3n \" the indentation of sub-sub-headings relative to sub-headings
193 . nr an-prevailing-indent \\n[IN]
196 . nr an-no-space-flag 0
205 . wh \\n[FT]u an-p-footer
208 . ie \\n[C] .bp (\\n[%] + 1)
214 .\" BSD compatibility macros: .AT and .UC
217 . ds an-extra2 "7th Edition\"
218 . if "\\$1"3" .ds an-extra2 "7th Edition\"
219 . if "\\$1"4" .ds an-extra2 "System III\"
221 . ie "\\$2"" .ds an-extra2 "System V\"
222 . el .ds an-extra2 "System V Release \\$2\"
227 . ds an-extra2 "3rd Berkeley Distribution\"
228 . if "\\$1"3" .ds an-extra2 "3rd Berkeley Distribution\"
229 . if "\\$1"4" .ds an-extra2 "4th Berkeley Distribution\"
230 . if "\\$1"5" .ds an-extra2 "4.2 Berkeley Distribution\"
231 . if "\\$1"6" .ds an-extra2 "4.3 Berkeley Distribution\"
232 . if "\\$1"7" .ds an-extra2 "4.4 Berkeley Distribution\"
236 . ta T .5i \" This sets tabs every .5 inches
240 . ie \\n[.$] .nr PD (v;\\$1)
241 . el .nr PD (.4v >? \n[.V])
244 .\" Redefine these to customize the header & footer
247 . tl '\\*[an-title](\\*[an-section])'\\*[an-extra3]'\\*[an-title](\\*[an-section])'
254 . if o .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
255 . if e .tl '\\*[an-page-string]'\\*[an-extra1]'\\*[an-extra2]'
258 . tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
299 . ie \\n[an-html] \{\
306 . if (\\n[%] > \\n[X]) \{\
307 . nr an-page-letter (\\n[%] - \\n[X])
308 . ds an-page-string \\n[X]\\n[an-page-letter]\"
313 . ds an-page-string "\\*[an-title](\\*[an-section])\"
315 . ds an-page-string \\n[%]\"
331 .if \n[cR] .em an-end
337 . nr an-prevailing-indent \\n[IN]
342 . DEVTAG-NH \\n[an-level]
344 . nr an-no-space-flag 1
356 . nr an-prevailing-indent \\n[IN]
361 . nr an-no-space-flag 1
378 . if \\n[.$] \,\\$*\/
396 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
399 . ll -\\n[an-margin]u
400 . if !\\n[an-div?] .di an-div
405 . if \\n[need_eo_h]>0 .DEVTAG-EO-H
407 . if \\n[need_col2]>0 .DEVTAG-COL 2
412 . if \\n[an-break-flag] \{\
416 . if \\n[an-no-space-flag] \{\
418 . nr an-no-space-flag 0
420 . if \\n[an-div?] .an-do-tag
428 . \" We must emit the diversion in a separate environment to
429 . \" assure that a possible margin character is printed correctly.
435 . ie (\\n[dl] + \\n[an-tag-sep] > \\n[an-prevailing-indent]) \{\
439 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
442 . \" In nroff mode, the indentation value should be an integer multiple
443 . \" of the character cell, to avoid different results compared to the
444 . \" the .ie part above.
450 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
461 . nr an-prevailing-indent \\n[IN]
475 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
479 . ie (\\n[.$] - 1) .TP "\\$2"
491 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
492 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
499 .ds an-empty \" this is referenced to avoid looping on eg .RB ( \\ )
503 . ds an-result \&\f[R]\\$1\"
505 . while (\\n[.$] >= 2) \{\
506 . as an-result \,\f[I]\\$1\f[R]\/\\$2\\*[an-empty]\"
509 . if \\n[.$] .as an-result \,\f[I]\\$1\"
517 . ds an-result \&\f[I]\\$1\f[R]\"
519 . while (\\n[.$] >= 2) \{\
520 . as an-result \/\\$1\f[I]\,\\$2\f[R]\"
523 . if \\n[.$] .as an-result \/\\$1\"
531 . ds an-result \&\f[I]\\$1\"
533 . while (\\n[.$] >= 2) \{\
534 . as an-result \/\f[B]\\$1\f[I]\,\\$2\\*[an-empty]\"
537 . if \\n[.$] .as an-result \/\f[B]\\$1\"
545 . ds an-result \&\f[B]\\$1\"
547 . while (\\n[.$] >= 2) \{\
548 . as an-result \,\f[I]\\$1\f[B]\/\\$2\\*[an-empty]\"
551 . if \\n[.$] .as an-result \,\f[I]\\$1\"
559 . while (\\n[.$] >= 2) \{\
560 . as an-result \f[R]\\$1\f[B]\\$2\\*[an-empty]\"
563 . if \\n[.$] .as an-result \f[R]\\$1\"
570 . while (\\n[.$] >= 2) \{\
571 . as an-result \f[B]\\$1\f[R]\\$2\\*[an-empty]\"
574 . if \\n[.$] .as an-result \f[B]\\$1\"
580 . nr an-saved-margin\\n[an-level] \\n[an-margin]
581 . nr an-saved-prevailing-indent\\n[an-level] \\n[an-prevailing-indent]
582 . ie \\n[.$] .nr an-margin +(n;\\$1)
583 . el .nr an-margin +\\n[an-prevailing-indent]
585 . nr an-prevailing-indent \\n[IN]
590 . ie \\n[.$] .nr an-level ((;\\$1) <? \\n[an-level])
592 . nr an-level (1 >? \\n[an-level])
593 . nr an-margin \\n[an-saved-margin\\n[an-level]]
594 . nr an-prevailing-indent \\n[an-saved-prevailing-indent\\n[an-level]]
612 .\" dummy equation delimiters
623 . tm `R' is a string (producing the registered sign), not a macro.
634 .\" these strings must work in compatibility mode also
637 .ie c\[tm] .ds Tm \(tm\"
652 .\" For UTF-8, map some characters conservatively for the sake
653 .\" of easy cut and paste.
655 .if '\*[.T]'utf8' \{\
664 .\" Load man macro extensions.
667 .\" Load local modifications.
672 .\" end of an-old.tmac