1 .\" Copyright (c) 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)doc-nroff 8.1 (Berkeley) 06/08/93
33 .\" $FreeBSD: src/contrib/groff/tmac/doc-nroff,v 1.1.1.1.8.6 2003/02/14 15:22:11 ru Exp $
34 .\" $DragonFly: src/contrib/groff/tmac/Attic/doc-nroff,v 1.2 2003/06/17 04:24:02 dillon Exp $
41 .\" use -rD=1 for double-sided printing
45 .\" use -rcR=0 to have multiple pages instead of a single, very long page
49 .\" the following switches are ignored in nroff mode
54 .\" the `doc-xx-font' strings must not be empty!
56 .ds doc-caption-font \f[R]
57 .ds doc-caption-font2 \f[R]
78 .ds doc-Tn-font-shape \f[R]
83 .ds doc-left-parenthesis \f[R](\f[]
84 .ds doc-right-parenthesis \f[R])\f[]
87 .ds doc-left-bracket \f[R][\f[]
88 .ds doc-right-bracket \f[R]]\f[]
91 .nr doc-subheader-indent .5i
92 .nr doc-paragraph-space 1v
95 .nr doc-digit-width \w'\0\0'u
96 .nr doc-fixed-width \w'0'
100 .\" NS doc-header-space global register
101 .\" NS the space between header and body
103 .nr doc-header-space 0
106 .\" NS doc-footer-space global register
107 .\" NS the space between body and footer
109 .nr doc-footer-space 0
112 .\" NS doc-display-vertical global register
113 .\" NS vertical space between list elements etc.
115 .nr doc-display-vertical 0
118 .\" NS doc-setup-page-layout macro
119 .\" NS set up page layout
122 .\" NS doc-display-vertical
123 .\" NS doc-footer-space
124 .\" NS doc-header-space
126 .de doc-setup-page-layout
128 . nr doc-header-space 0
130 . nr doc-header-space .5i
131 . nr doc-footer-space .5i
145 . nr doc-display-vertical 1v
153 .ds doc-left-singlequote \[oq]
154 .ds doc-right-singlequote \[cq]
156 .\" the following strings are `official'
172 .\" Unicode TTYs have all glyph forms; for other TTY character sets we need
173 .\" character representations which are different from GNU troff's standard
175 .ie '\*[.T]'utf8' \{\
193 .\" NS doc-header-string global string
194 .\" NS the final string used for the manual page header
196 .ds doc-header-string
199 .\" NS doc-setup-header macro
200 .\" NS install and initialize header and footer support
203 .\" NS doc-header-string
207 . ds doc-header-string "\*[doc-document-title]
208 . if !"\*[doc-section]"Null" \
209 . as doc-header-string (\*[doc-section])
215 . wh -1.167i doc-footer
218 . if ((\n[nl] == 0) : (\n[nl] == -1)) \
225 .\" NS doc-get-width macro
226 .\" NS computes the width of a string as a multiple of `doc-fixed-width':
227 .\" NS `.doc-get-width string'
233 . nr doc-width \w
\a\$1
\a
234 . ie (\n[doc-width] >= \n[doc-fixed-width]) \{\
235 . ie (\n[doc-width] % \n[doc-fixed-width]) \
236 . nr doc-width ((\n[doc-width] / \n[doc-fixed-width]) + 1)
238 . nr doc-width (\n[doc-width] / \n[doc-fixed-width])
245 .\" NS doc-get-arg-width macro
246 .\" NS computes the width of an argument as a multiple of
247 .\" NS `doc-fixed-width': `.doc-get-arg-width arg-index'
252 .de doc-get-arg-width
253 . nr doc-width \w
\a\*[doc-arg\$1]
\a
254 . ie (\n[doc-width] >= \n[doc-fixed-width]) \{\
255 . ie (\n[doc-width] % \n[doc-fixed-width]) \
256 . nr doc-width ((\n[doc-width] / \n[doc-fixed-width]) + 1)
258 . nr doc-width (\n[doc-width] / \n[doc-fixed-width])
266 .\" NS quoted literal define
269 .\" NS doc-macro-name
270 .\" NS doc-quote-left
271 .\" NS doc-quote-right
273 .\" NS width register `Ql' set in doc-common
276 . if !\n[doc-arg-limit] \{\
278 . ds doc-macro-name Ql
280 . tm Usage: .Ql argument ... (#\n[.c])
283 . ds doc-quote-left "\*[doc-left-singlequote]
284 . ds doc-quote-right "\*[doc-right-singlequote]
286 . doc-enclose-string \$@