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
11 .\" the documentation and/or other materials provided with the
14 .\" ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change]
15 .\" 4. Neither the name of the University nor the names of its
16 .\" contributors may be used to endorse or promote products derived
17 .\" from this software without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS"
20 .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22 .\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
23 .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26 .\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27 .\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
29 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)doc-nroff 8.1 (Berkeley) 06/08/93
39 .\" use -rD=1 for double-sided printing
43 .\" use -rcR=0 for multiple pages instead of a single, very long page
47 .\" the following switch is ignored in nroff mode
51 .\" the 'doc-xx-font' strings must not be empty!
53 .ds doc-caption-font \f[R]
54 .ds doc-caption-font2 \f[R]
75 .ds doc-Tn-font-shape \f[R]
80 .ds doc-left-parenthesis \f[R](\f[]
81 .ds doc-right-parenthesis \f[R])\f[]
84 .ds doc-left-bracket \f[R][\f[]
85 .ds doc-right-bracket \f[R]]\f[]
88 .nr doc-subheader-indent .5i
89 .nr doc-paragraph-space 1v
92 .nr doc-digit-width \w'\0\0'u
93 .nr doc-fixed-width \w'0'
97 .\" NS doc-header-space global register
98 .\" NS the space between header and body
100 .nr doc-header-space 0.5i
103 .\" NS doc-footer-space global register
104 .\" NS the space between body and footer
106 .nr doc-footer-space 0.5i
109 .\" NS doc-display-vertical global register
110 .\" NS vertical space between list elements etc.
112 .nr doc-display-vertical 0
115 .\" NS doc-setup-page-layout macro
116 .\" NS set up page layout
119 .\" NS doc-display-vertical
121 .de doc-setup-page-layout
134 . nr doc-display-vertical 1v
142 .ds doc-left-singlequote \[oq]
143 .ds doc-right-singlequote \[cq]
145 .\" the following strings are 'official'
163 .\" Unicode TTYs have all glyph forms; for other TTY character sets we
164 .\" need character representations which are different from GNU troff's
166 .ie '\*[.T]'utf8' \{\
180 .\" NS doc-header-string global string
181 .\" NS the final string used for the manual page header
183 .ds doc-header-string
186 .\" NS doc-setup-header macro
187 .\" NS install and initialize header and footer support
190 .\" NS doc-header-string
193 . ds doc-header-string "\*[doc-document-title]
194 . if !"\*[doc-section]"Null" \
195 . as doc-header-string (\*[doc-section])
201 . wh -1.167i doc-footer
208 .\" NS doc-get-width macro
209 .\" NS computes the width of a string as a multiple of
210 .\" NS 'doc-fixed-width': '.doc-get-width string'
216 . nr doc-width \w
\a\$1
\a
217 . ie (\n[doc-width] >= \n[doc-fixed-width]) \{\
218 . ie (\n[doc-width] % \n[doc-fixed-width]) \
219 . nr doc-width ((\n[doc-width] / \n[doc-fixed-width]) + 1)
221 . nr doc-width (\n[doc-width] / \n[doc-fixed-width])
228 .\" NS doc-get-arg-width macro
229 .\" NS computes the width of an argument as a multiple of
230 .\" NS 'doc-fixed-width': '.doc-get-arg-width arg-index'
235 .de doc-get-arg-width
236 . nr doc-width \w
\a\*[doc-arg\$1]
\a
237 . ie (\n[doc-width] >= \n[doc-fixed-width]) \{\
238 . ie (\n[doc-width] % \n[doc-fixed-width]) \
239 . nr doc-width ((\n[doc-width] / \n[doc-fixed-width]) + 1)
241 . nr doc-width (\n[doc-width] / \n[doc-fixed-width])
249 .\" NS quoted literal define
252 .\" NS doc-macro-name
253 .\" NS doc-quote-left
254 .\" NS doc-quote-right
256 .\" NS width register 'Ql' set in doc-common
259 . if !\n[doc-arg-limit] \{\
261 . ds doc-macro-name Ql
263 . tm Usage: .Ql argument ... (#\n[.c])
266 . ds doc-quote-left "\*[doc-left-singlequote]
267 . ds doc-quote-right "\*[doc-right-singlequote]
269 . doc-enclose-string \$@
275 .\" ====================================================================
277 .\" ====================================================================
283 .\" vim: set filetype=groff textwidth=72: