Departments & Programs   Text formatting in Unix  Last revision
August 3, 2004  Table of Contents:   1. Computer Typesetting
Overview   2. LaTeX Typesetting System  Simple formatting of
ASCII files  These programs work for any text file and do not
require any embedded formatting commands. All of these programs
will read from standard input if no files are specified on the
command line, so they can work in pipelines. With the exception
of enscript, these programs send the formatted text to standard
output; to print on paper, pipe to lpr. The enscript program
sends directly to the specified printer.  The fold and fmt
programs are also very useful to justify "ragged" lines within a
file using the filter (!) operator in the vi editor.  fold -
break long lines into shorter pieces  fold splits long lines
into several shorter ones. You can specify the maximum allowable
line length with the -w option. By default, the maximum
allowable output line length is 80 characters (the screen
width).  By default, fold just spli