BSD 4_1_snap development
[unix-history] / usr / man / man1 / troff.1
CommitLineData
e3758c96
C
1.TH TROFF 1
2.SH NAME
3troff, nroff \- text formatting and typesetting
4.SH SYNOPSIS
5.B troff
6[ option ] ...
7[ file ] ...
8.PP
9.B nroff
10[ option ] ...
11[ file ] ...
12.SH DESCRIPTION
13.I Troff
14formats text in the named
15.I files
16for
17printing on a Graphic Systems C/A/T phototypesetter;
18.I nroff
19for typewriter-like devices.
20Their capabilities are described in the
21.I Nroff/Troff user's manual.
22.PP
23If no
24.I file
25argument is present, the standard input is read.
26An argument consisting of a single minus
27.RB ( \- )
28is taken to be
29a file name corresponding to the standard input.
30The options, which may appear in any order so long as they appear
31before the files, are:
32.TP "\w'\f3\-m\f1name 'u"
33.BI \-o list
34Print only pages whose page numbers appear in
35the comma-separated
36.I list
37of numbers and ranges.
38A range
39.IB N \- M
40means pages
41.I N
42through
43.IR M ;
44an initial
45.I \-N
46means
47from the beginning to page
48.IR N ;
49and a final
50.IR N \-
51means
52from
53.I N
54to the end.
55.TP
56.BI \-n N
57Number first generated page
58.IR N .
59.TP
60.BI \-s N
61Stop every
62.I N
63pages.
64.I Nroff
65will halt prior to every
66.I N
67pages (default
68.IR N =1)
69to allow paper loading or
70changing, and will resume upon receipt of a newline.
71.I Troff
72will stop the phototypesetter every
73.I N
74pages,
75produce a trailer to allow changing cassettes,
76and resume when the typesetter's start button is pressed.
77.TP
78.BI \-m name
79Prepend the macro file
80.BI /usr/lib/tmac/tmac. name
81to the input
82.IR files .
83.TP
84.BI \-r aN
85Set register
86.I a
87(one-character) to
88.IR N .
89.TP
90.B \-i
91Read standard input after the input files are exhausted.
92.TP
93.B \-q
94Invoke the simultaneous input-output mode of the
95.B rd
96request.
97.HP
98.bd I 3
99.I Nroff only
100.br
101.bd I
102.TP
103.BI \-T name
104Prepare output for specified terminal.
105Known
106.I names
107are
108.B 37
109for the (default)
110Teletype Corporation Model 37 terminal,
111.B tn300
112for the GE TermiNet\ 300 (or any terminal without half-line
113capability),
114.B 300S
115for the \s-1DASI\s+1-300S,
116.B 300
117for the \s-1DASI\s+1-300,
118and
119.B 450
120for the \s-1DASI\s+1-450
121(Diablo Hyterm).
122.TP
123.B \-e
124Produce equally-spaced words in adjusted
125lines, using full terminal resolution.
126.TP
127.B \-h
128Use output tabs during horizontal spacing
129to speed output and reduce output character count.
130Tab settings are assumed to be every
1318 nominal character widths.
132.HP
133.bd I 3
134.I Troff only
135.br
136.bd I
137.TP
138.B \-t
139Direct output to the standard output instead
140of the phototypesetter.
141.TP
142.B \-f
143Refrain from feeding out paper and stopping
144phototypesetter at the end of the run.
145.TP
146.B \-w
147Wait until phototypesetter is available, if
148currently busy.
149.TP
150.B \-b
151Report whether the phototypesetter
152is busy or available.
153No text processing is done.
154.TP
155.B \-a
156Send a printable ASCII approximation
157of the results to the standard output.
158.TP
159.BR \-p N
160Print all characters in point size
161.I N
162while retaining all prescribed spacings and motions,
163to reduce phototypesetter elasped time.
164.TP
165.B \-g
166Prepare output for a GCOS
167phototypesetter and direct it to the standard output
168(see
169.IR gcat (1)).
170.PP
171If the file
172.I /usr/adm/tracct
173is writable,
174.I troff
175keeps phototypesetter accounting records there.
176The integrity of that file may be secured by making
177.I troff
178a `set user-id' program.
179.SH FILES
180.ta \w'/usr/lib/tmac/tmac.* 'u
181/usr/lib/suftab suffix hyphenation tables
182.br
183/tmp/ta* temporary file
184.br
185/usr/lib/tmac/tmac.* standard macro files
186.br
187/usr/lib/term/* terminal driving tables for
188.I nroff
189.br
190/usr/lib/font/* font width tables for
191.I troff
192.br
193/dev/cat phototypesetter
194.br
195/usr/adm/tracct accounting statistics for /dev/cat
196.SH "SEE ALSO"
197J. F. Ossanna,
198.I Nroff/Troff user's manual
199.br
200B. W. Kernighan,
201.I
202A TROFF Tutorial
203.br
204vtroff(1), eqn(1), tbl(1), pti(1), ms(7), me(7), man(7), soelim(1)
205.br
206col(1), tk(1)
207.RI ( nroff
208only)
209.br
210tc(1)
211.RI ( troff
212only)