Where the output from a2ps goes is determined by the options you specify when typing the command. This document illustrates the basic uses of the a2ps. GNU a2ps is a filter which generates PostScript from various formats, with pretty- printing features, Output Options, What should be done of the output. See the output of `a2ps –list=media’ for the list of supported media. The special medium `libpaper’ means that you want a2ps to ask the library libpaper for the.
|Published (Last):||26 February 2010|
|PDF File Size:||2.78 Mb|
|ePub File Size:||3.63 Mb|
|Price:||Free* [*Free Regsitration Required]|
Page device is a PostScript level 2 feature that offers an uniform interface to control printer’s output device. Indeed pack just looks for some keywords, or some sequencesi. This document illustrates the basic uses of the a2ps command.
The main advantages for using PreScript are: It is for the same reason that you can’t expect pack to highlight outpht function definitions in C. For example you may want to put a postscript file on a web page, or print the document to a postscript printer, with specific postscript formatting commands.
Printing using the a2ps command. This program is a great find for me. By looking at the name of the file and the first few bytes of its contents, a2ps can usually determine what kind of a file it is.
PreScript and pack can be used for one-the-fly formating. This schema seems to us a good compromise. Read the man page if you want to print double-sided, or you want to number each line in the output.
As a2ps is not installed by default, you will normally have to install it yourself. There is no way in PreScript to get an automatic numbering. There is a couple of things to know about the process. To modify the paper size to Letter: It has a large number of command-line options.
Similarly, it will run a file containing Java outpuy code through a Java pretty-printer that italicizes comments and boldfaces keywords automatically, convert a JPEG image file to PostScript, and automatically expand a compressed.
Three fonts are used: There should be a space between the option, -P, and the printer name. If file alignment is filla2ps prints a file beginning in the next available cell, leaving no empty cell in between it and the previous file.
Posted by Peter Leung. Calling pack is fairly simple: See section Meta ap2s for details. This can be achieved with the command:. There is a general mechanism to avoid special sequences from being interpreted: A2pps output of a2ps can then be displayed under X with.
For a complete list of options, and more information on the a2ps command, type the command:.
In Unix the a2ps command reads a text or ascii file, generates postscript from it, and sends it to a postscript printer, a file, or into another Unix command. Outptu contributions changes, fixes, ideas were done by a2ps users in order to improve it.
Their ohtput use is to avoid a sequence from being terminated too soon, e. You must make sure that they, outout, receive or can get the source code. For instance, it detects that frogs. Or access this man pages on-line as a web page: On failure, plain style is used.
As a first example, a2ps can be used to convert a text file into PostScript, with two pages scaled down so they fit on one sheet.
It is considered as true i. There is no equivalent to the LaTeX environment enumerate.