xref: /csrg-svn/old/roff/nroff/nroff.1 (revision 50831)
143083Scael.\" Copyright (c) 1983, 1990 The Regents of the University of California.
248303Sbostic.\" All rights reserved.
319770Smckusick.\"
448303Sbostic.\" %sccs.include.proprietary.roff%
519770Smckusick.\"
6*50831Scael.\"	@(#)nroff.1	6.8 (Berkeley) 08/09/91
748303Sbostic.\"
843083Scael.Dd
943083Scael.Dt NROFF 1
1043083Scael.Os BSD 4.2
1143083Scael.Sh NAME
1243083Scael.Nm nroff
1343083Scael.Nd text formatting
1443083Scael.Sh SYNOPSIS
1543083Scael.Nm nroff
16*50831Scael.Op option
17*50831Scael.Ar ...
18*50831Scael.Op file
19*50831Scael.Ar ...
2043083Scael.Sh DESCRIPTION
2143083Scael.Nm Nroff
2219770Smckusickformats text in the named
2343083Scael.Ar files
2443083Scaelfor typewriter-like devices.  See also
2543083Scael.Xr troff 1  .
2619770SmckusickThe full capabilities of
2743083Scael.Nm nroff
2819770Smckusickare described in the
29*50831Scael.%T "Nroff/Troff User's Manual" .
3043083Scael.Pp
3119770SmckusickIf no
3243083Scael.Ar file
3319770Smckusickargument is present, the standard input is read.
3419770SmckusickAn argument consisting of a single minus
3543083Scael.Fl
3619770Smckusickis taken to be a file name corresponding to the standard input.
3743083Scael.Pp
3819770SmckusickThe options, which may appear in any order so long as they appear
3943083Scael.Ar before
4019770Smckusickthe files, are:
41*50831Scael.Bl -tag -width indent
42*50831Scael.It Fl o Ns Ar list
4319770SmckusickPrint only pages whose page numbers appear in the comma-separated
4443083Scael.Ar list
4519770Smckusickof numbers and ranges.  A range
4643083Scael.Ar N\-M
4719770Smckusickmeans pages
4843083Scael.Ar N
4919770Smckusickthrough
5043083Scael.Ar M  ;
5119770Smckusickan initial
5243083Scael.Ar \-N
5319770Smckusickmeans from the beginning to page
5443083Scael.Ar N  ;
5519770Smckusickand a final
5643083Scael.Ar N\-
5719770Smckusickmeans from
5843083Scael.Ar N
5919770Smckusickto the end.
60*50831Scael.It Fl n Ns Ar N
6119770SmckusickNumber first generated page
6243083Scael.Ar N  .
63*50831Scael.It Fl s Ns Ar N
6419770SmckusickStop every
6543083Scael.Ar N
6619770Smckusickpages.
6743083Scael.Nm Nroff
6819770Smckusickwill halt prior to every
6943083Scael.Ar N
7019770Smckusickpages (default
71*50831Scael.Ar N Ns =1)
7219770Smckusickto allow paper loading or changing, and will resume upon receipt of a newline.
73*50831Scael.It Fl m Ns Ar name
7419770SmckusickPrepend the macro file
7543083Scael.Pa /usr/share/tmac/tmac.name
7619770Smckusickto the input
7743083Scael.Ar files  .
78*50831Scael.It Fl r Ns Ar aN
7919770SmckusickSet register
8043083Scael.Ar a
8119770Smckusick(one-character) to
8243083Scael.Ar N  .
83*50831Scael.It Fl i
8419770SmckusickRead standard input after the input files are exhausted.
85*50831Scael.It Fl q
8619770SmckusickInvoke the simultaneous input-output mode of the
8743083Scael.Ar rd
8819770Smckusickrequest.
89*50831Scael.It Fl T Ns Ar name
9043083ScaelPrepare output for specified terminal.  Known
9143083Scael.Ar names
9243083Scaelare:
9343083Scael.Pp
94*50831Scael.Bl -tag -width xeroxxx -compact
95*50831Scael.It Cm 37
9632214Sbosticfor the Teletype Corporation Model 37 terminal,
97*50831Scael.It Cm crt
9832214Sbosticthe default; linked to lpr and tn300, for the GE TermiNet 300 (or any
9932214Sbosticterminal without reverse-line or half-line capability),
100*50831Scael.It Cm 300
10132214Sbosticfor the DTC 300,
102*50831Scael.It Cm 302
10332214Sbosticfor the DTC 302S and the DTC 300S,
104*50831Scael.It Cm 382
10532214Sbosticfor the DTC 382,
106*50831Scael.It Cm 450
10732214Sbosticfor the DTC 450 and the IPSI 1622,
108*50831Scael.It Cm 833
10932214Sbosticfor the AJ 832/833,
110*50831Scael.It Cm epson
11132214Sbosticfor the Epson FX80,
112*50831Scael.It Cm itoh
11332214Sbosticfor the C:ITOH Prowriter
114*50831Scael.It Cm nec
11532214Sbosticfor the NEC-55?0/77?0 Spinwriter, with the Courier-72/Manifold
11632214Sbosticthimble,
117*50831Scael.It Cm nec-t
11832214Sbosticfor the NEC-55?0/77?0 Spinwriter, with the Tech-Math/Times-Roman
11932214Sbosticthimble,
120*50831Scael.It Cm nec25-t
12132214Sbosticfor the NEC-5525/7725 Spinwriter, with the Tech-Math/Times-Roman
12232214Sbosticthimble,
123*50831Scael.It Cm qume
12432214Sbosticfor the Qume Sprint 5 or 9,
125*50831Scael.It Cm x-ecs
12632214Sbosticfor the Xerox/Diablo 1730/630, extended character set,
127*50831Scael.It Cm xerox
12832214Sbosticfor the Xerox 17?0 or the Diablo 16?0.
12943083ScaelMost of these also have versions for 12 pitch.
130*50831ScaelSee
13143083Scael.Pa /usr/libdata/term/README
13243083Scaelfor more information.
133*50831Scael.El
134*50831Scael.It Fl e
13519770SmckusickProduce equally-spaced words in adjusted lines, using full terminal resolution.
136*50831Scael.It Fl h
13719770SmckusickUse output tabs during horizontal spacing
13819770Smckusickto speed output and reduce output character count.
13919770SmckusickTab settings are assumed to be every 8 nominal character widths.
140*50831Scael.El
14143083Scael.Sh FILES
142*50831Scael.Bl -tag -width /usr/share/tmac/tmac.* -compact
143*50831Scael.It Pa /tmp/ta*
144*50831ScaelTemporary file.
145*50831Scael.It Pa /usr/share/tmac/tmac.*
146*50831ScaelStandard macro files
147*50831Scael.It Pa /usr/libdata/term/*
148*50831ScaelTerminal driving tables for
149*50831Scael.Nm nroff .
150*50831Scael.El
15143083Scael.Sh SEE ALSO
15243083Scael.Xr troff 1 ,
15343083Scael.Xr eqn 1 ,
15443083Scael.Xr tbl 1 ,
15543083Scael.Xr ms 7 ,
15643083Scael.Xr me 7 ,
15743083Scael.Xr man 7 ,
15843083Scael.Xr col 1
159*50831Scael.Rs
160*50831Scael.%A J. F. Ossanna
161*50831Scael.%T "Nroff/Troff user's manual"
162*50831Scael.Re
163*50831Scael.Rs
164*50831Scael.%A B. W. Kernighan
165*50831Scael.%T A TROFF Tutorial
166*50831Scael.Re
16743083Scael.Sh HISTORY
168*50831ScaelAn
169*50831Scael.Nm nroff
170*50831Scaelcommand appeared in
171*50831Scael.At v6 .
172*50831ScaelThe version described here appeared in
173*50831Scael.At v7 .
174