A2ps (Version 4.13b)



Documentation
Usage

A2ps formats each named file for printing in a PostScript printer; if no file is given, a2ps reads from the standard input. The output is sent to lpr or to stdout. The format used is nice and compact: normally two pages on each physical page, borders surrounding pages, headers with useful information (page number, printing date, file name or supplied header), line numbering, etc. This is very useful for making archive listings of programs.

Documentation

Usage

A2ps generates PostScript to its standard output. The user could redirect this output to a file, pipe it directly to a print command (like lpr), or to another filter for further processing. By default, a2ps pipes directly the output to the print command (see -P option).

% a2ps file1 > file2

% a2ps -p file1 | psnup -4 | lpr -l

Don't forget -l option in "lpr", if you want that "lpr" interprets your postscript program rather than merely printing it as ascii text.

This filter must be used only with text files. Avoid specially output from TeX, troff or any other such text formatters.

Example: To print two pages ascii text per physical page (twinpage mode), side by side or up-down, depending on the printing mode (landscape or portrait), type:

% a2ps -2 [-nv] ascii-file > name.ps
% lpr [-Pmiro] name.ps

or

% a2ps -2 [-nv] ascii-file | lpr -l

Remember that the on line help is always available. Moreover, if your screen is small, you may pipe it into more. Just trust this:

% a2ps -h | more

Nach oben scrollen