Blob
1 .TH DEROFF 12 .SH NAME3 deroff, delatex \- remove formatting requests4 .SH SYNOPSIS5 .B deroff6 [7 .I option ...8 ]9 .I file ...10 .PP11 .B delatex12 .I file13 .SH DESCRIPTION14 .I Deroff15 reads each file in sequence16 and removes all17 .I nroff18 and19 .IR troff (1)20 requests and non-text arguments, backslash constructions,21 and constructs of preprocessors such as22 .IR eqn (1),23 .IR pic (1),24 and25 .IR tbl (1).26 Remaining text is written on the standard output.27 .I Deroff28 follows files included by29 .L .so30 and31 .L .nx32 commands;33 if a file has already been included, a34 .L .so35 for that file is ignored and a36 .L .nx37 terminates execution.38 If no input file is given,39 .I deroff40 reads from standard input.41 .PP42 The options are43 .TP44 .B -w45 Output a word list, one `word' (string of letters, digits, and46 properly embedded ampersands and apostrophes,47 beginning with a letter) per line.48 Other characters are skipped.49 Otherwise, the output follows the original, with the deletions mentioned above.50 .TP51 .B -_52 Like53 .BR -w ,54 but consider underscores to be alphanumeric rather than punctuation.55 .TP56 .B -i57 Ignore58 .L .so59 and60 .L .nx61 requests.62 .TP63 .BR -ms64 .PD065 .TP66 .B -mm67 Remove titles, attachments, etc., as well as ordinary68 .IR troff69 constructs, from70 .IR ms (6)71 or72 .I mm73 documents.74 .PD75 .TP76 .B -ml77 Same as78 .BR -mm ,79 but remove lists as well.80 .PP81 .I Delatex82 does for83 .I tex84 and85 .I latex86 (see87 .IR tex (1))88 files what89 .B deroff -wi90 does for91 .I troff92 files.93 .SH SOURCE94 .B /usr/local/plan9/src/cmd/deroff.c95 .br96 .B /usr/local/plan9/src/cmd/tex/local/delatex.c97 .SH "SEE ALSO"98 .IR troff (1),99 .IR tex (1),100 .IR spell (1)101 .SH BUGS102 These filters are not complete interpreters of103 .I troff104 or105 .IR tex .106 For example, macro definitions containing107 .L \e$108 cause chaos in109 .IR deroff110 when the popular111 .L $$112 delimiters for113 .I eqn114 are in effect.115 .br116 Text inside macros is emitted at place of117 definition, not place of call.