aboutsummaryrefslogtreecommitdiff
path: root/man/man1/troff.1
blob: 7af3f3c1cc5c48d29bbb1b37f077685fdbfa8a6c (plain)
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
.TH TROFF 1
.SH NAME
troff, nroff \- text formatting and typesetting
.SH SYNOPSIS
.B troff
[
.I option ...
]
[
.I file ...
]
.PP
.B nroff
[
.I option ...
]
[
.I file ...
]
.SH DESCRIPTION
.I Troff
formats text in the named
.I files
for
printing on a typesetter.
.I Nroff
does the same, but produces output suitable
for typewriter-like devices.
.PP
If no
.I file
argument is present, the standard input is read.
An argument consisting of a single minus
.RB ( - )
is taken to be
a file name corresponding to the standard input.
The options are:
.nr xx \w'\fL-m\f2name\ \ '
.TP \n(xxu
.BI -o list
Print pages in the comma-separated
.I list
of numbers and ranges.
A range
.IB N - M
means 
.I N
through
.IR M ;
initial
.BI - M
means up to
.IR M ;
final
.IB N -
means from
.I N
to the end.
.TP
.BI -n N
Number first generated page
.IR N .
.TP
.BI -m name
Process the macro file
.BI /sys/lib/tmac/tmac. name
before the input
.IR files .
.TP
.BI -r aN
Set register
.I a
(one character name) to
.IR N .
.TP
.B -i
Read standard input after the input files are exhausted.
.TP
.B -q
Invoke the simultaneous input-output mode of the
.B rd
request.
.TP
.B -N
Produce output suitable for typewriter-like devices.
.SS Typesetter devices (not \fL-N\fP) only
.TP \n(xxu
.B -a
Send a printable
textual
approximation
of the results to the standard output.
.TP
.BI -T dest
Prepare output for typesetter
.IR dest :
.br
.ns
.RS
.TP \w'\fL-TLatin1\ 'u
.B -Tutf
(The default.) PostScript printers with
preprocessing to handle Unicode
characters encoded in
.SM UTF
.PD0
.TP
.B -Tpost
Regular PostScript printers
.PD0
.TP
.B -T202
Mergenthaler Linotron 202 
.RE
.PD
.TP "\w'\fL-m\f2name 'u"
.BI -F dir
Take font information from directory
.IR dir .
.SS Typewriter (\fL-N\fP) output only
.TP \n(xxu
.BI -s N
Halt prior to every
.I N
pages (default
.IR N =1)
to allow paper loading or changing.
.TP
.BI -T name
Prepare output for specified terminal.
Known
.I names
include
.B utf
for the normal Plan 9
.SM UTF
encoding of the Unicode Standard character set (default),
.B 37
for the
Teletype model 37,
.B lp
(`line-printer')
for any terminal without half-line capability,
.B 450
for the \s-1DASI\s+1-450
(Diablo Hyterm),
and
.B think
(HP ThinkJet).
.TP
.B -e
Produce equally-spaced words in adjusted
lines, using full terminal resolution.
.TP
.B -h
Use output tabs during horizontal spacing
to speed output and reduce output character count.
Tab settings are assumed to be every
8 nominal character widths.
.SH FILES
.TF \*9/troff/term/*
.TP
.B /tmp/trtmp*
temporary file
.TP
.B \*9/tmac/tmac.*
standard macro files
.TP
.B \*9/troff/term/*
terminal driving tables for
.I nroff
.TP
.B \*9/troff/font/*
font width tables for
.I troff
.SH SOURCE
.B \*9/src/cmd/troff
.SH "SEE ALSO"
.IR lpr (1),
.IR proof (1),
.IR tr2post (1),
.IR eqn (1), 
.IR tbl (1), 
.IR pic (1), 
.IR grap (1),
.IR doctype (1), 
.IR ms (7),
.IR image (7),
.IR tex (1),
.IR deroff (1)
.br
J. F. Ossanna and B. W. Kernighan,
``Troff User's Manual''
.br
B. W. Kernighan,
``A TROFF Tutorial'',
.I
Unix Research System Programmer's Manual,
Tenth Edition, Volume 2.