(Updated 2000 Feb 14)

a2ps
a text-to-PostScript conversion program


Some general rules:


General usage: a2ps -flags text_file(s)

Some useful flags:

Long flagShortDescription
--help display (long) help file
--list=defaults list default settings
--landscape -r print in landscape mode
--portrait -R print in portrait mode
--columns=NUM number of columns per sheet
--rows=NUM number of rows per sheet
--font-size=SZ -fSZ use font size SZ (floating point) for the body text
--output=FILE -oFILE write output to a PostScript file named FILE
--printer=name -Pname send output to printer name


Some examples: (Click on the command line to view a slightly cut-off, captured PostScript window)

Command line Comments
more test.txt What the input text file looks like
a2ps -oa2psdflt.ps test.txt Default is landscape w/2 columns
a2ps -R -oa2psport.ps test.txt Portrait mode also gives 2 columns
a2ps --columns=1 -oa2pscol1.ps test.txt Forces one column
a2ps --columns=1 -f9 -oa2psf090.ps test.txt Smaller font so lines don't wrap
a2ps --columns=1 -f9.4 -oa2psf094.ps test.txt Non-integer font size


Home > Lab > a2ps

Send questions or comments to Gizmo
This page is Lynx-enhanced.