blob: 18d62280d85a93e244f137595bf65c32b56b3095 [file] [log] [blame]
rsccfa37a72004-04-10 18:53:55 +00001.TH DEROFF 1
2.SH NAME
3deroff, delatex \- remove formatting requests
4.SH SYNOPSIS
5.B deroff
6[
7.I option ...
8]
9.I file ...
10.PP
11.B delatex
12.I file
13.SH DESCRIPTION
14.I Deroff
15reads each file in sequence
16and removes all
17.I nroff
18and
19.IR troff (1)
20requests and non-text arguments, backslash constructions,
21and constructs of preprocessors such as
22.IR eqn (1),
23.IR pic (1),
24and
25.IR tbl (1).
26Remaining text is written on the standard output.
27.I Deroff
28follows files included by
29.L .so
30and
31.L .nx
32commands;
33if a file has already been included, a
34.L .so
35for that file is ignored and a
36.L .nx
37terminates execution.
38If no input file is given,
39.I deroff
40reads from standard input.
41.PP
42The options are
43.TP
44.B -w
45Output a word list, one `word' (string of letters, digits, and
46properly embedded ampersands and apostrophes,
47beginning with a letter) per line.
48Other characters are skipped.
49Otherwise, the output follows the original, with the deletions mentioned above.
50.TP
51.B -_
52Like
53.BR -w ,
54but consider underscores to be alphanumeric rather than punctuation.
55.TP
56.B -i
57Ignore
58.L .so
59and
60.L .nx
61requests.
62.TP
63.BR -ms
64.PD0
65.TP
66.B -mm
67Remove titles, attachments, etc., as well as ordinary
68.IR troff
69constructs, from
rsc058b0112005-01-03 06:40:20 +000070.IR ms (7)
rsccfa37a72004-04-10 18:53:55 +000071or
72.I mm
73documents.
74.PD
75.TP
76.B -ml
77Same as
78.BR -mm ,
79but remove lists as well.
80.PP
81.I Delatex
82does for
83.I tex
84and
85.I latex
86(see
87.IR tex (1))
88files what
89.B deroff -wi
90does for
91.I troff
92files.
93.SH SOURCE
rscb5fdffe2004-04-19 19:22:56 +000094.B /usr/local/plan9/src/cmd/deroff.c
rsccfa37a72004-04-10 18:53:55 +000095.br
rsc058b0112005-01-03 06:40:20 +000096.B /usr/local/plan9/src/cmd/delatex.lx
rsccfa37a72004-04-10 18:53:55 +000097.SH "SEE ALSO"
98.IR troff (1),
99.IR tex (1),
100.IR spell (1)
101.SH BUGS
102These filters are not complete interpreters of
103.I troff
104or
105.IR tex .
106For example, macro definitions containing
107.L \e$
108cause chaos in
109.IR deroff
110when the popular
111.L $$
112delimiters for
113.I eqn
114are in effect.
115.br
116Text inside macros is emitted at place of
117definition, not place of call.