2 .\" Copyright (c) 2007, Sun Microsystems, Inc.) All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH NROFF 1 "Nov 1, 2007"
8 nroff \- format documents for display or line-printer
12 \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]
13 [\fB-T\fR\fIname\fR] [\fB-u\fR\fIN\fR] [\fIfilename...\fR]
19 The \fBnroff\fR utility formats text in the named \fIfilename\fR for
20 typewriter-like devices. See also \fBtroff\fR(1).
23 If no \fIfilename\fR argument is present, \fBnroff\fR reads the standard input.
24 An argument consisting of a `\fB\(mi\fR\&' is taken to be a file name
25 corresponding to the standard input.
29 The following options are supported. Options can appear in any order so long as
30 they appear \fIbefore\fR the files.
37 Produces equally-spaced words in adjusted lines, using full terminal
47 Uses output \fITAB\fR characters during horizontal spacing to speed output and
48 reduces output character count. \fITAB\fR settings are assumed to be every 8
49 nominal character widths.
58 Reads the standard input after the input files are exhausted.
67 Does not print output that was read from an \fB\&.rd\fR request.
73 \fB\fB-m\fR\fIname\fR\fR
76 Prepends the macro file \fB/usr/share/lib/tmac/\fIname\fR\fR to the input
86 Numbers first generated page \fIN\fR.
92 \fB\fB-o\fR\fIpagelist\fR\fR
95 Prints only pages whose page numbers appear in the comma-separated \fIlist\fR
96 of numbers and ranges. A range \fIN\fR\fB-\fR\fIM\fR means pages \fIN\fR
97 through \fIM\fR; an initial \fB-N\fR means from the beginning to page \fIN\fR;
98 and a final \fIN\fR\(mi means from \fIN\fR to the end.
104 \fB\fB-r\fR\fIaN\fR\fR
107 Sets register \fIa\fR (one-character) to \fIN\fR.
113 \fB\fB-s\fR\fIN\fR\fR
116 Stops every \fIN\fR pages. \fBnroff\fR halts prior to every \fIN\fR pages
117 (default \fIN\fR=1) to allow paper loading or changing, and resumes upon
118 receipt of a \fINEWLINE\fR.
124 \fB\fB-T\fR\fIname\fR\fR
127 Prepares output for a device of the specified \fIname\fR. Known \fIname\fRs
135 Teletype Corporation Model 37 terminal \(em this is the default.
141 \fB\fBlp\fR | \fBtn300\fR\fR
144 \fBGE\fR \(em any line printer or terminal without half-line capability.
162 \fBDASI\fR-300 \(em 12-pitch.
189 \fBDASI\fR-382 (fancy \fBDTC\fR 382).
198 \fBDASI\fR-450 (Diablo Hyterm).
207 \fBDASI\fR-450 (Diablo Hyterm) \(em 12-pitch.
224 \fB\fB-u\fR\fIN\fR\fR
227 Set the emboldening factor for the font mounted in position \fB3\fR to \fIN\fR.
228 If \fIN\fR is missing, then set the emboldening factor to \fB0\fR.
234 The following operand is supported:
241 The file containing text to be processed by \fBnroff\fR.
246 \fBExample 1 \fRFormatting with a macro package
249 The following command formats \fBusers.guide\fR using the \fB-me\fR macro
250 package, and stopping every 4 pages:
255 example% \fBnroff \(mis4 \(mime users.guide\fR
260 .SH ENVIRONMENT VARIABLES
263 See \fBenviron\fR(5) for descriptions of the following environment variables
264 that affect the execution of \fBnroff\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR,
270 \fB\fB/usr/tmp/trtmp*\fR\fR
274 temporary file (see NOTES)
280 \fB\fB/usr/share/lib/tmac/tmac.*\fR\fR
290 \fB\fB/usr/share/lib/nterm/*\fR\fR
294 terminal driving tables for \fBnroff\fR
300 \fB\fB/usr/share/lib/nterm/README\fR\fR
304 index to terminal description files
310 See \fBattributes\fR(5) for descriptions of the following attributes:
318 ATTRIBUTE TYPE ATTRIBUTE VALUE
326 \fBchecknr\fR(1), \fBcol\fR(1), \fBeqn\fR(1), \fBman\fR(1), \fBtbl\fR(1),
327 \fBtroff\fR(1), \fBattributes\fR(5), \fBenviron\fR(5), \fBme\fR(5),
328 \fBms\fR(5), \fBterm\fR(5)
332 \fB/usr/tmp\fR is currently a symbolic link to \fB/var/tmp\fR.
335 Previous documentation incorrectly described the numeric register \fByr\fR as
336 being the \fBLast two digits of current year\fR. \fByr\fR is in actuality the
337 number of years since 1900. To correctly obtain the last two digits of the
338 current year through the year 2099, the definition given below of string
339 register \fByy\fR can be included in a document and subsequently used to
340 display a two-digit year. Notice that any other available one- or two-character
341 register name can be substituted for \fByy\fR.
345 \&.\e" definition of new string register yy--last two digits of year
346 \&.\e" use yr (# of years since 1900) if it is < 100
347 \&.ie \en(yr<100 .ds yy \en(yr
348 \&.el \e{ .\e" else, subtract 100 from yr, store in ny
350 \&.ie \en(ny>9 \e{ .\e" use ny if it is two digits
352 \&.\e" remove temporary number register ny
355 \&.\e" if ny is one digit, append it to 0