1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc.) All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH NROFF 1 "Nov 1, 2007"
.SH NAME
nroff \- format documents for display or line-printer
.SH SYNOPSIS
.LP
.nf
\fBnroff\fR [\fB-ehiq\fR] [\fB-m\fR\fIname\fR] [\fB-n\fR\fIN\fR] [\fB-o\fR\fIpagelist\fR] [\fB-r\fR\fIaN\fR] [\fB-s\fR\fIN\fR]
[\fB-T\fR\fIname\fR] [\fB-u\fR\fIN\fR] [\fIfilename...\fR]
.fi
.SH DESCRIPTION
.sp
.LP
The \fBnroff\fR utility formats text in the named \fIfilename\fR for
typewriter-like devices. See also \fBtroff\fR(1).
.sp
.LP
If no \fIfilename\fR argument is present, \fBnroff\fR reads the standard input.
An argument consisting of a `\fB\(mi\fR\&' is taken to be a file name
corresponding to the standard input.
.SH OPTIONS
.sp
.LP
The following options are supported. Options can appear in any order so long as
they appear \fIbefore\fR the files.
.sp
.ne 2
.na
\fB\fB-e\fR\fR
.ad
.RS 14n
Produces equally-spaced words in adjusted lines, using full terminal
resolution.
.RE
.sp
.ne 2
.na
\fB\fB-h\fR\fR
.ad
.RS 14n
Uses output \fITAB\fR characters during horizontal spacing to speed output and
reduces output character count. \fITAB\fR settings are assumed to be every 8
nominal character widths.
.RE
.sp
.ne 2
.na
\fB\fB-i\fR\fR
.ad
.RS 14n
Reads the standard input after the input files are exhausted.
.RE
.sp
.ne 2
.na
\fB\fB-q\fR\fR
.ad
.RS 14n
Does not print output that was read from an \fB\&.rd\fR request.
.RE
.sp
.ne 2
.na
\fB\fB-m\fR\fIname\fR\fR
.ad
.RS 14n
Prepends the macro file \fB/usr/share/lib/tmac/\fIname\fR\fR to the input
files.
.RE
.sp
.ne 2
.na
\fB\fB-n\fR\fIN\fR\fR
.ad
.RS 14n
Numbers first generated page \fIN\fR.
.RE
.sp
.ne 2
.na
\fB\fB-o\fR\fIpagelist\fR\fR
.ad
.RS 14n
Prints only pages whose page numbers appear in the comma-separated \fIlist\fR
of numbers and ranges. A range \fIN\fR\fB-\fR\fIM\fR means pages \fIN\fR
through \fIM\fR; an initial \fB-N\fR means from the beginning to page \fIN\fR;
and a final \fIN\fR\(mi means from \fIN\fR to the end.
.RE
.sp
.ne 2
.na
\fB\fB-r\fR\fIaN\fR\fR
.ad
.RS 14n
Sets register \fIa\fR (one-character) to \fIN\fR.
.RE
.sp
.ne 2
.na
\fB\fB-s\fR\fIN\fR\fR
.ad
.RS 14n
Stops every \fIN\fR pages. \fBnroff\fR halts prior to every \fIN\fR pages
(default \fIN\fR=1) to allow paper loading or changing, and resumes upon
receipt of a \fINEWLINE\fR.
.RE
.sp
.ne 2
.na
\fB\fB-T\fR\fIname\fR\fR
.ad
.RS 14n
Prepares output for a device of the specified \fIname\fR. Known \fIname\fRs
are:
.sp
.ne 2
.na
\fB\fB37\fR\fR
.ad
.RS 14n
Teletype Corporation Model 37 terminal \(em this is the default.
.RE
.sp
.ne 2
.na
\fB\fBlp\fR | \fBtn300\fR\fR
.ad
.RS 14n
\fBGE\fR \(em any line printer or terminal without half-line capability.
.RE
.sp
.ne 2
.na
\fB\fB300\fR\fR
.ad
.RS 14n
\fBDASI\fR-300.
.RE
.sp
.ne 2
.na
\fB\fB300-12\fR\fR
.ad
.RS 14n
\fBDASI\fR-300 \(em 12-pitch.
.RE
.sp
.ne 2
.na
\fB\fB300S\fR\fR
.ad
.RS 14n
\fBDASI\fR-300S.
.RE
.sp
.ne 2
.na
\fB\fB300S-12\fR\fR
.ad
.RS 14n
\fBDASI\fR-300S.
.RE
.sp
.ne 2
.na
\fB\fB382\fR\fR
.ad
.RS 14n
\fBDASI\fR-382 (fancy \fBDTC\fR 382).
.RE
.sp
.ne 2
.na
\fB\fB450\fR\fR
.ad
.RS 14n
\fBDASI\fR-450 (Diablo Hyterm).
.RE
.sp
.ne 2
.na
\fB\fB450-12\fR\fR
.ad
.RS 14n
\fBDASI\fR-450 (Diablo Hyterm) \(em 12-pitch.
.RE
.sp
.ne 2
.na
\fB\fB832\fR\fR
.ad
.RS 14n
\fBAJ\fR 832.
.RE
.RE
.sp
.ne 2
.na
\fB\fB-u\fR\fIN\fR\fR
.ad
.RS 14n
Set the emboldening factor for the font mounted in position \fB3\fR to \fIN\fR.
If \fIN\fR is missing, then set the emboldening factor to \fB0\fR.
.RE
.SH OPERANDS
.sp
.LP
The following operand is supported:
.sp
.ne 2
.na
\fB\fIfilename\fR\fR
.ad
.RS 12n
The file containing text to be processed by \fBnroff\fR.
.RE
.SH EXAMPLES
.LP
\fBExample 1 \fRFormatting with a macro package
.sp
.LP
The following command formats \fBusers.guide\fR using the \fB-me\fR macro
package, and stopping every 4 pages:
.sp
.in +2
.nf
example% \fBnroff \(mis4 \(mime users.guide\fR
.fi
.in -2
.sp
.SH ENVIRONMENT VARIABLES
.sp
.LP
See \fBenviron\fR(5) for descriptions of the following environment variables
that affect the execution of \fBnroff\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR,
and \fBNLSPATH\fR.
.SH FILES
.sp
.ne 2
.na
\fB\fB/usr/tmp/trtmp*\fR\fR
.ad
.sp .6
.RS 4n
temporary file (see NOTES)
.RE
.sp
.ne 2
.na
\fB\fB/usr/share/lib/tmac/tmac.*\fR\fR
.ad
.sp .6
.RS 4n
standard macro files
.RE
.sp
.ne 2
.na
\fB\fB/usr/share/lib/nterm/*\fR\fR
.ad
.sp .6
.RS 4n
terminal driving tables for \fBnroff\fR
.RE
.sp
.ne 2
.na
\fB\fB/usr/share/lib/nterm/README\fR\fR
.ad
.sp .6
.RS 4n
index to terminal description files
.RE
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
CSI Enabled
.TE
.SH SEE ALSO
.sp
.LP
\fBchecknr\fR(1), \fBcol\fR(1), \fBeqn\fR(1), \fBman\fR(1), \fBtbl\fR(1),
\fBtroff\fR(1), \fBattributes\fR(5), \fBenviron\fR(5), \fBme\fR(5),
\fBms\fR(5), \fBterm\fR(5)
.SH NOTES
.sp
.LP
\fB/usr/tmp\fR is currently a symbolic link to \fB/var/tmp\fR.
.sp
.LP
Previous documentation incorrectly described the numeric register \fByr\fR as
being the \fBLast two digits of current year\fR. \fByr\fR is in actuality the
number of years since 1900. To correctly obtain the last two digits of the
current year through the year 2099, the definition given below of string
register \fByy\fR can be included in a document and subsequently used to
display a two-digit year. Notice that any other available one- or two-character
register name can be substituted for \fByy\fR.
.sp
.in +2
.nf
\&.\e" definition of new string register yy--last two digits of year
\&.\e" use yr (# of years since 1900) if it is < 100
\&.ie \en(yr<100 .ds yy \en(yr
\&.el \e{ .\e" else, subtract 100 from yr, store in ny
\&.nr ny \en(yr-100
\&.ie \en(ny>9 \e{ .\e" use ny if it is two digits
\&.ds yy \en(ny
\&.\e" remove temporary number register ny
\&.rr ny \e}
\&.el \e{.ds yy 0
\&.\e" if ny is one digit, append it to 0
\&.as yy \en(ny
\&.rr ny \e} \e}
.fi
.in -2
|