1 .\" $NetBSD: deroff.1,v 1.2 2005/07/02 10:29:44 wiz Exp $
3 .\" $OpenBSD: deroff.1,v 1.5 2003/06/10 09:12:10 jmc Exp $
5 .\" Copyright (c) 1990, 1993
6 .\" The Regents of the University of California. All rights reserved.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" Copyright (C) Caldera International Inc. 2001-2002.
33 .\" All rights reserved.
35 .\" Redistribution and use in source and binary forms, with or without
36 .\" modification, are permitted provided that the following conditions
38 .\" 1. Redistributions of source code and documentation must retain the above
39 .\" copyright notice, this list of conditions and the following disclaimer.
40 .\" 2. Redistributions in binary form must reproduce the above copyright
41 .\" notice, this list of conditions and the following disclaimer in the
42 .\" documentation and/or other materials provided with the distribution.
43 .\" 3. All advertising materials mentioning features or use of this software
44 .\" must display the following acknowledgement:
45 .\" This product includes software developed or owned by Caldera
46 .\" International, Inc.
47 .\" 4. Neither the name of Caldera International, Inc. nor the names of other
48 .\" contributors may be used to endorse or promote products derived from
49 .\" this software without specific prior written permission.
51 .\" USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
52 .\" INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
53 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
54 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
55 .\" IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE LIABLE FOR ANY DIRECT,
56 .\" INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
57 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
58 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
59 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
60 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
61 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
62 .\" POSSIBILITY OF SUCH DAMAGE.
64 .\" @(#)deroff.1 8.1 (Berkeley) 6/6/93
71 .Nd remove nroff/troff, eqn, pic and tbl constructs
82 reads each file in sequence and removes all
86 command lines, backslash constructions, macro definitions,
92 lines or between delimiters),
95 and table descriptions and writes the remainder to the standard output.
97 follows chains of included files
104 if a file has already been included, a
108 terminates execution.
109 If no input file is given,
111 reads from the standard input.
113 The options are as follows:
122 Keep blocks of text intact.
123 This is the default behavior unless the
127 Enable support for common macro packages.
130 option takes the following arguments:
131 .Bl -tag -width Ds -offset indent -compact
141 remove list constructs.
152 Preserve paragraph macros.
153 This option only has an effect if the
155 option is also specified.
157 Output a word list, one
159 (string of letters, digits, and apostrophes, beginning with a
160 letter; apostrophes are removed) per line, and all other characters
162 Normally, the output follows the original, with the deletions
179 interpreter, so it can be confused by subtle constructs.
180 Most errors result in too much rather than too little output.
184 option does not correctly handle nested lists.