Advanced Use of Enscript
The Enscript program which is now on Bama as a huge number of options for formatting output. Please see the man pages for more information
Formatting
Enscript understands various programming languages and can print
them in a "pretty print" mode. It will write comments in italics,
functions and subroutines in bold and all the rest in roman type. The
switch which turns this on is "-E" so that
enscript -E program.f
will print the file program.f with the special
formatting.
Enscript takes its clues from the file name, so that ".f" is
fortran, ".c" is
C, etc. If you want to give it a better clue as to what to do you can
specify that with the -E option. For instance,
enscript -Ec program
will use the C option even though the program name has no suffix.
ada |
Ada95 programming language |
asm |
Assembler listings |
awk |
AWK programming language |
c |
C programming language |
changelog |
ChangeLog files |
cpp |
C++ programming language |
diff |
normal diffs |
diffu |
unified diffs |
delphi |
Delphi programming language |
elisp |
Emacs LISP |
fortran |
Fortran77 programming language |
haskell |
Haskell programming language |
html |
Hypertext markup language (HTML) |
idl |
IDL (CORBA Interface Definition Language) |
java |
Java programming language |
javascript |
JavaScript language |
Mail and news articles |
|
makefile |
Make program's definition files |
nroff |
Manual pages formatted with the nroff program |
objc |
Objective-C programming language |
pascal |
Pascal programming language |
perl |
Perl programming language |
postscript |
PostScript programming language |
python |
Python programming language |
scheme |
Scheme programming language |
sh |
Bourne shell programming language |
sql |
Sybase 11 SQL |
states |
States program's definition files |
synopsys |
Synopsys dc shell scripting language |
tcl |
Tcl programming language |
verilog |
Verilog hardware description language |
vhdl |
VHSIC Hardware Description Language (VHDL) |
vba |
Visual Basic (for Applications) |
Fonts
These are specified with the "-f" option followed by the
type size. An example command to print myfile in Helvetica font
in size 12 would be
enscript -fHelvetica12 myfile
- AvantGarde-Book; AvantGarde-BookOblique
- AvantGarde-Demi; AvantGarde-DemiOblique
- Bookman-Demi; Bookman-DemiItalic
- Bookman-Light; Bookman-LightItalic
- Courier; Courier-Bold; Courier-Oblique; Courier-BoldOblique
- Helvetica; Helvetica-Oblique; Helvetica-Bold; Helvetica-BoldOblique
- NewCenturySchlbk-Roman; NewCenturySchlbk-Bold; NewCenturySchlbk-Italic; NewCenturySchlbk-BoldItalic
- Palatino-Roman; Palatino-Italic; Palatino-Oblique; Palatino-Bold; Palatino-BoldItalic; Palatino-BoldOblique; Palatino-SmallCaps
- Times-Roman; Times-Italic; Times-Oblique; Times-Bold; Times-BoldItalic; Times-BoldOblique; Times-ItalicUnslanted; Times-MathItalic; Times-SmallCaps
- Symbol
- ZapfDingbats
- ZapfChancery-MediumItalic

