5 .\" Copyright (C) 1989-2014 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 3 of the License, or
13 .\" (at your option) any later version.
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
21 .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
23 .\" -rcR=1 => Create a single, very long page instead of multiple pages.
24 .\" Useful for online display. Default in nroff mode.
25 .\" Desactivate with -rcR=0.
26 .\" -rC1 => Number pages continuously, rather than start each at 1.
27 .\" -rD1 => Double-sided printing, ie different odd and even page footers.
28 .\" -rPnnn => Number first page nnn.
29 .\" -rSxx => Use size `xx'pt (either 10, 11, or 12) for document rather
30 .\" than the default size of 10pt.
31 .\" -rXnnn => Number pages after nnn as nnna, nnnb, nnnc, ...
33 .\" The file man.local is loaded at the end. Put local additions there.
34 .\" If you need to add things to TH, use `.am1 TH'.
37 .if !\n(.g .ab These man macros work only with groff.
46 .if (\n[.x]\n[.y] < 118) \
47 . ab You need GNU troff version 1.18 or higher to run this version of man!
52 .\" we must use consecutive page numbers when using postscript to generate
53 .\" html images, and we must not reset the page number at the beginning
54 .\" (the `ps4html' register is automatically added to the command line by
55 .\" the pre-html preprocessor)
66 .\" set up the line length...
67 .\" giving precedence to any prior assignment to the \n[LL] register.
70 . \" but if that isn't predefined...
71 . \" then try to respect any prior `.ll' request.
74 . \" For troff, this is sufficient to give us a default line length of
75 . \" 6.5i, but for nroff, we prefer a default of 78n to nroff's default
76 . \" 65n. This has the unfortunate side effect that we will override a
77 . \" user's `.ll 65n' request, with our preferred 78n default; we can't
78 . \" possibly know that the 65n came from a `.ll' request, and MUST
79 . \" assume that it was set by nroff, as its built-in default! If the
80 . \" user wants to force this setting, then he MUST use the `-rLL=65n'
81 . \" option, or an equivalent `.nr LL 65n' request.
92 .\" Default heading font
98 .if '\*[.T]'html' .nr an-html 1
99 .if \n[an-html] .nr C 1
100 .if r ps4html .nr C 1
102 .\" we redefine .ne to avoid page breaks if cR is set; instead, the page
103 .\" length is increased to the necessary amount (this is needed for tables)
105 .\" similarly, we redefine .bp if cR is set, adjusting the page length to
106 .\" the current position so that no empty lines are inserted
113 . if (\\n[an-ne] >= \\n[.t]) \
114 . pl +(\\n[an-ne]u - \\n[.t]u + 1v)
127 . nr an-margin \\n[IN]
128 . nr an-saved-margin1 \\n[IN]
129 . nr an-prevailing-indent \\n[IN]
130 . nr an-saved-prevailing-indent1 \\n[IN]
137 .\" .TH title section extra1 extra2 extra3
139 . if \\n[an-html] \{\
145 . de an-init \" We have to do it like this to get multiple man pages right.
146 . ds an-title "\\$1\"
147 . ds an-section "\\$2\"
148 . ds an-extra1 "\\$3\"
149 . ie (\\n[.$] > 3) .ds an-extra2 "\\$4\"
150 . el .ds an-extra2 \"Sun Release 4.0
152 . ie (\\n[.$] > 4) .ds an-extra3 "\\$5\"
153 . el \{ .ie '\\$2'1' .ds an-extra3 General Commands Manual
154 . el \{ .ie '\\$2'2' .ds an-extra3 System Calls Manual
155 . el \{ .ie '\\$2'3' .ds an-extra3 Library Functions Manual
156 . el \{ .ie '\\$2'3p' .ds an-extra3 Perl Programmers Reference Guide
157 . el \{ .ie '\\$2'4' .ds an-extra3 Kernel Interfaces Manual
158 . el \{ .ie '\\$2'5' .ds an-extra3 File Formats Manual
159 . el \{ .ie '\\$2'6' .ds an-extra3 Games Manual
160 . el \{ .ie '\\$2'7' .ds an-extra3 Miscellaneous Information Manual
161 . el \{ .ie '\\$2'8' .ds an-extra3 System Manager's Manual
162 . el \{ .ie '\\$2'9' .ds an-extra3 Kernel Developer's Manual
164 . \}\}\}\}\}\}\}\}\}\}
170 . nr PS 10z \" default point size
175 . \" use sizes similar to LaTeX
177 . ie (\\n[S] == 11) \{\
184 . if (\\n[S] == 12) \{\
197 .\" We must select an integer indentation value for nroff;
198 .\" see comment in an-do-tag.
205 . nr SN 3n \" the indentation of sub-sub-headings relative to sub-headings
209 . nr an-no-space-flag 0
218 . wh \\n[FT]u an-p-footer
221 . ie \\n[C] .bp (\\n[%] + 1)
227 .\" BSD compatibility macros: .AT and .UC
230 . ds an-extra2 "7th Edition\"
231 . if "\\$1"3" .ds an-extra2 "7th Edition\"
232 . if "\\$1"4" .ds an-extra2 "System III\"
234 . ie "\\$2"" .ds an-extra2 "System V\"
235 . el .ds an-extra2 "System V Release \\$2\"
240 . ds an-extra2 "3rd Berkeley Distribution\"
241 . if "\\$1"3" .ds an-extra2 "3rd Berkeley Distribution\"
242 . if "\\$1"4" .ds an-extra2 "4th Berkeley Distribution\"
243 . if "\\$1"5" .ds an-extra2 "4.2 Berkeley Distribution\"
244 . if "\\$1"6" .ds an-extra2 "4.3 Berkeley Distribution\"
245 . if "\\$1"7" .ds an-extra2 "4.4 Berkeley Distribution\"
249 . ta T .5i \" This sets tabs every .5 inches
253 . ie \\n[.$] .nr PD (v;\\$1)
254 . el .nr PD (.4v >? \n[.V])
257 .\" Redefine these to customize the header & footer
260 . tl '\\*[an-title](\\*[an-section])'\\*[an-extra3]'\\*[an-title](\\*[an-section])'
267 . if o .tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
268 . if e .tl '\\*[an-page-string]'\\*[an-extra1]'\\*[an-extra2]'
271 . tl '\\*[an-extra2]'\\*[an-extra1]'\\*[an-page-string]'
312 . ie \\n[an-html] \{\
319 . if (\\n[%] > \\n[X]) \{\
320 . nr an-page-letter (\\n[%] - \\n[X])
321 . ds an-page-string \\n[X]\\n[an-page-letter]\"
326 . ds an-page-string "\\*[an-title](\\*[an-section])\"
328 . ds an-page-string \\n[%]\"
344 .if \n[cR] .em an-end
353 . DEVTAG-NH \\n[an-level]
355 . nr an-no-space-flag 1
370 . nr an-no-space-flag 1
387 . if \\n[.$] \,\\$*\/
405 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
408 . if !\\n[an-div?] \{\
409 . ll -\\n[an-margin]u
416 . if \\n[need_eo_h]>0 .DEVTAG-EO-H
418 . if \\n[need_col2]>0 .DEVTAG-COL 2
423 . if \\n[an-break-flag] \{\
427 . if \\n[an-no-space-flag] \{\
429 . nr an-no-space-flag 0
431 . if \\n[an-div?] .an-do-tag
439 . \" We must emit the diversion in a separate environment to
440 . \" assure that a possible margin character is printed correctly.
446 . ie (\\n[dl] + \\n[an-tag-sep] > \\n[an-prevailing-indent]) \{\
450 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
453 . \" In nroff mode, the indentation value should be an integer multiple
454 . \" of the character cell, to avoid different results compared to the
455 . \" the .ie part above.
461 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
472 . nr an-prevailing-indent \\n[IN]
486 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
490 . ie (\\n[.$] - 1) .TP "\\$2"
502 . if \\n[.$] .nr an-prevailing-indent (n;\\$1)
503 . in (\\n[an-margin]u + \\n[an-prevailing-indent]u)
510 .ds an-empty \" this is referenced to avoid looping on eg .RB ( \\ )
514 . ds an-result \&\f[R]\\$1\"
516 . while (\\n[.$] >= 2) \{\
517 . as an-result \,\f[I]\\$1\f[R]\/\\$2\\*[an-empty]\"
520 . if \\n[.$] .as an-result \,\f[I]\\$1\"
528 . ds an-result \&\f[I]\\$1\f[R]\"
530 . while (\\n[.$] >= 2) \{\
531 . as an-result \/\\$1\f[I]\,\\$2\f[R]\"
534 . if \\n[.$] .as an-result \/\\$1\"
542 . ds an-result \&\f[I]\\$1\"
544 . while (\\n[.$] >= 2) \{\
545 . as an-result \/\f[B]\\$1\f[I]\,\\$2\\*[an-empty]\"
548 . if \\n[.$] .as an-result \/\f[B]\\$1\"
556 . ds an-result \&\f[B]\\$1\"
558 . while (\\n[.$] >= 2) \{\
559 . as an-result \,\f[I]\\$1\f[B]\/\\$2\\*[an-empty]\"
562 . if \\n[.$] .as an-result \,\f[I]\\$1\"
570 . while (\\n[.$] >= 2) \{\
571 . as an-result \f[R]\\$1\f[B]\\$2\\*[an-empty]\"
574 . if \\n[.$] .as an-result \f[R]\\$1\"
581 . while (\\n[.$] >= 2) \{\
582 . as an-result \f[B]\\$1\f[R]\\$2\\*[an-empty]\"
585 . if \\n[.$] .as an-result \f[B]\\$1\"
591 . nr an-saved-margin\\n[an-level] \\n[an-margin]
592 . nr an-saved-prevailing-indent\\n[an-level] \\n[an-prevailing-indent]
593 . ie \\n[.$] .nr an-margin +(n;\\$1)
594 . el .nr an-margin +\\n[an-prevailing-indent]
596 . nr an-prevailing-indent \\n[IN]
601 . ie \\n[.$] .nr an-level ((;\\$1) <? \\n[an-level])
603 . nr an-level (1 >? \\n[an-level])
604 . nr an-margin \\n[an-saved-margin\\n[an-level]]
605 . nr an-prevailing-indent \\n[an-saved-prevailing-indent\\n[an-level]]
613 . if \\n[an-html] \{\
614 . nr an-TS-ll \\n[.l]
629 .\" dummy equation delimiters
631 . if \\n[an-html] \{\
632 . nr an-EQ-ll \\n[.l]
646 . tm `R' is a string (producing the registered sign), not a macro.
657 .\" these strings must work in compatibility mode also
660 .ie c\[tm] .ds Tm \(tm\"
675 .\" For UTF-8, map some characters conservatively for the sake
676 .\" of easy cut and paste.
678 .if '\*[.T]'utf8' \{\
687 .\" Load man macro extensions.
690 .\" Load local modifications.
695 .\" end of an-old.tmac