a2ps options filenames

a2ps formats files for output on a postscript printer.

It's -1, ... -9 options let you save paper by printing more than one page on each sheet. Note that -2 i.e. two pages per sheet is the default. I find -4 quite readable, and use 75% less paper. These options will also work for dvi files and postscript files.

Ordinary text files are printed nicely formated with page numbers, and headings.I find the -L66 option helpful for printing man pages: i.e. man a2ps | a2ps -4 -L66 -Plab1 will print the a2ps man page on printer lab 1.

For fortran or C source code pretty printing is available. This makes your source code (or even better somebody else's) easier to read. (see a2ps --list=style-sheets for a complete list of all languanges for which pretty printing is avaialbe: it includes c, cpp, fortran, csh, make, and html.)

options (a very abreviated list)

-1
print one page pre sheet of paper
-2
print two pages per sheet of paper this is the default
-4
print four pages per sheet of paper
-3,-5 -6 -7 -8 -9
print 3,5,6,7,8, or 9 pages per sheet
-A
print multiple files togehter on the same sheet, normally a2ps prints each file on a separate sheet of paper
-Plab1
print to lab1
-Plab2
print to lab2
-Pdisplay
display the formated output using ghost view instead of printing it
-Pvoid
the void printer, i.e. don't actually print just format and display how many pages and sheets would be used if printed.
-Estyle
turn on preety printing for style where style could be fortran, c, cpp, etc. this will format your program with the coments in italics, and keywords in bold, etc,etc. It makes source code much easier to read.
--list=style-sheets
list the avaiable styles (i.e. languages) that a2ps knows how to format iwth the pretty printer.

filenames

a list of one or more files that you want printed, rebemer to use the -A flag if you don't need to have each file start on a separate sheet of paper.