deweb(1)
π deweb β the manual page, bestie edition π
okay so you opened the manual for deweb, a lil General Commands Manual situation, and honestly? she's a baddie. let's get into it π
β¨ NAME β¨
deweb β strips away C & CWEB commands from CWEB sources π
πΈ SYNOPSIS πΈ
deweb [ file1 file2 ... ]
π¦ DESCRIPTION π¦
so what does she actually do. deweb filters away all C & CWEB commands from a CWEB source code. the way it leaves only the LaTeX code behind? iconic. and then that stripped code can be passed to a suitable syntax checker for LaTeX, like ChkTeX and lacheck, or spell-checkers like ispell. chef's kiss β¨
the chkweb tool, included in the ChkTeX distribution, will do just this; writing similar scripts should be trivial. lowkey a flex.
when deweb strips away the C code from your CWEB source, it tries to preserve line breaks. and bestie, that matters so much β because it means the error reports from <your favorite tool> will be correct regarding to line numbers. in most cases, the column position will also be correct. this significantly simplifies finding the errors in the LaTeX source β in contrast to the output from cweave, which output is truly difficult to figure anything out from. not me dragging cweave but like. fr fr. π
deweb accepts a list of filenames on the argument line, and will send its output to stdout. if no filenames are given, it will read from stdin, acting as a filter. no options are currently accepted. (yes, zero flags. she's minimalist. main character energy. π)
macho users may try to pipe the output from deweb directly into LaTeX. theoretically, this should work. this would ease the debugging of the LaTeX code significantly, as when LaTeX complains about wrong syntax, you'll be able to find the erroneous line much more easily. don't expect that the output looks very much like the final one, though. π
deweb should now understand all correct CWEB opcodes. if it complains about not understanding a correct opcode, please inform the author. she wants the feedback, babes π«Ά
π DISTRIBUTION π
Copyright (C) 1996 Jens T. Berger Thielemann
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
like, legal stuff but make it cute: GPL v2 or later, no warranty, periodt. π
π§ ENVIRONMENT π§
No environment variables are used. that's it. nothing. she doesn't need them bestie, she's self-sufficient β¨
π FILES π
None. zero. nada. she reads what you give her and that's the vibe πΈ
π AUTHOR π
Jens T. Berger Thielemann, <jensthi@ifi.uio.no>
π₯ SEE ALSO π₯
cweave(1)perl(1)chktexlacheck(1)ispell(1)
iykyk π
π BUGS π
Doesn't even compile under Perl versions before perl v5. π unfortunately, this means that we can't even tell the user why we failed; Perl will just complain about not being able to compile the regexps. so you get a cryptic little scream instead of an explanation. tragic.
The program will try to swallow the whole input file at once, instead of processing it on a line-by-line basis. yes, she's a gulper. whole file, one bite. π
and that's the whole page, bestie!! written up as the 7th Edition, dated June 8, 1996 β a true vintage queen from the General Commands Manual era. go forth and strip some C out of your CWEB, you got this π¦β¨π
π¦ where this page comes from
- alpine 3.24: texmf-dist-binextra-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms