Debian Codegraph @

texk/chktex/chktex-src/deweb.1

raw
1 .TH deweb 1 "June 8, 1996"
2 .AT 3
3 .SH NAME
4 deweb \- strips away C & CWEB commands from CWEB sources
5 .SH SYNOPSIS
6 .B deweb
7 [
8 .B file1 file2 ...
9 ]
10 .SH DESCRIPTION
11 .I deweb
12 filters away all C & CWEB commands from a CWEB source code. This
13 leaves only the
14 .I LaTeX
15 code. This stripped code, in turn, may then
16 be passed to a suitable syntax checker for LaTeX, like
17 .I ChkTeX
18 and
19 .I lacheck,
20 or spell-checkers like
21 .I ispell.
22 .PP
23 The
24 .I chkweb
25 tool, included in the
26 .I ChkTeX
27 distribution will do just this; writing similar scripts should be
28 trivial.
29 .PP
30 When
31 .I deweb
32 strips away the C code from your CWEB source, it tries to preserve line breaks.
33 This means that the error reports from
34 .I <your favorite tool>
35 will be correct regarding to line numbers. In most cases,
36 the column position
37 will also be correct. This significantly simplifies
38 finding the errors in the
39 .I LaTeX
40 source (in contrast to the output from
41 .I cweave,
42 which output is truly difficult to figure anything out from).
43 .PP
44 .I deweb
45 accepts a list of filenames on the argument line, and will send its output
46 to
47 .I stdout.
48 If no filenames are given, it will read from stdin, acting as
49 a filter. No options are currently accepted.
50 .PP
51 Macho users may try to pipe the output from
52 .I deweb
53 directly into
54 .I LaTeX,
55 theoretically, this should work. This would ease the debugging
56 of the
57 .I LaTeX
58 code significantly, as when
59 .I LaTeX
60 complains about wrong syntax, you'll be able to find the erroneous
61 line much more easily. Don't expect that the output looks very much
62 like the final one, though.
63 .PP
64 .I deweb
65 should now understand all correct
66 .I CWEB
67 opcodes. If it complains about not understanding a correct opcode,
68 please inform the author.
69 .SH DISTRIBUTION
70 Copyright (C) 1996 Jens T. Berger Thielemann
71 .PP
72 This program is free software; you can redistribute it and/or modify
73 it under the terms of the
74 .I GNU General Public License
75 as published by
76 the Free Software Foundation; either version 2 of the License, or
77 (at your option) any later version.
78 .PP
79 This program is distributed in the hope that it will be useful,
80 but
81 .B WITHOUT ANY WARRANTY;
82 without even the implied warranty of
83 .B MERCHANTABILITY
84 or
85 .B FITNESS FOR A PARTICULAR PURPOSE.
86 See the
87 .I GNU General Public License
88 for more details.
89 .PP
90 You should have received a copy of the
91 .B GNU General Public License
92 along with this program; if not, write to the
93 .I Free Software Foundation, Inc.,
94 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
95 .SH ENVIRONMENT
96 No environment variables are used.
97 .SH FILES
98 None.
99 .SH AUTHOR
100 Jens T. Berger Thielemann,
101 .I <[email protected]>
102 .SH "SEE ALSO"
103 .B cweave(1), perl(1), chktex, lacheck(1), ispell(1)
104 .SH BUGS
105 Doesn't even
106 .B compile
107 under
108 .I Perl
109 versions before perl v5. Unfortunately, this means that we can't even
110 tell the user why we failed;
111 .I Perl
112 will just complain about not being able to compile the regexps.
113 .PP
114 The program will try to swallow the whole input file at once, instead of
115 processing it on a line\-by\-line basis.
116 .ex