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.

Author: Fenrigal Arashizahn
Country: Samoa
Language: English (Spanish)
Genre: Career
Published (Last): 23 April 2007
Pages: 51
PDF File Size: 6.31 Mb
ePub File Size: 9.76 Mb
ISBN: 350-6-85932-680-8
Downloads: 62217
Price: Free* [*Free Regsitration Required]
Uploader: Molkis

For the particular case of the special symbols, note that you may have to protect the symbols which are prefixed by them. To print a text file named a.

At the shell prompt, type its name and the name of a file that you want it to transform, thus:. By default, a2ps produces single-sided sheets in portrait orientation; if the file being printed is a text file, a2ps draws a border around the body of each page and adds a header and a footer, giving the name and last-modification date of the file, the name of the person who printed it, the date of the print job, and a page number.

In the order, they are: It can be a good candidate for generation of PostScript output syntactic pretty-printers, generation of various reports etc. This document deals only with a few particularly useful ones; for a full list, type. There is no space between the option, -l, and the number of lines. First it would have made the design of the style sheets much more tricky, and today pack would know only 4 or 5 languages. If you need to deal with several various fonts, then GNU enscript is exactly the tool you need.

Many new features and improvements have been added since this first version. Two different levels of pretty printing can be reached: Working with a2ps 6. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Foundation.

  JIS G3314 PDF

Third, mixing several parsers within one program is not easy. Specify the number of lines per page where num is a number greater than Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

The subroutines and source code in the pack package are “free”; this means that everyone is free to use them and free to redistribute them on a free basis. There is a big menagerie of symbols. It has a large number of command-line options. 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.

a2ps – format files for printing on a PostScript printer – Linux Man Pages (1)

Wednesday, January 22, Print text files with multiples pages per sheet. It would be great if pack could easily print files written in ISO Latin 2. Tags are piece of text pack fetches in the files, according to the style. From that outupt, Akim Demaille generalized the pretty-printing capabilities, implemented more languages support, and quite a lot other things.

However, display is a special name to redirect output to ghostview. In the following is described how the style sheets are defined. And you must tell them their rights. Headers, footers, titles and the water mark are strings in which some meta sequences are later replaced by their actual values. This document illustrates the basic uses of the a2ps command. As rootyou can send the output of Ghostscript directly to the printer oufput relying on a spooler or any further filtering with the command.

a2ps, version 4.7.20

Otherwise, the suffix of the file is compared with every name and abbreviation. To modify the paper size to Letter: To print the emacs config file in the above format, any of the following will do: For example, -2 is equivalent to 1 row and 2 columns. Three fonts are used: This document describes pack version 4.


A new version was written in C by Miguel Santana for improve speed execution and portability. A symbol, when recognized, is replaced by the corresponding character in the symbol font.

Compared to the previous versions, pack version 4. Keywords are written in bold, strings in Times, comments in Italic etc. To create a PostScript output file, and open it using ghostview: The problem with this approach is that a lot more than just messages and time information is affected: On failure, plain style is used. What is not allowed is to try to prevent others from further sharing any version of these programs that they might get from you.

Indeed pack just looks for some keywords, or some sequencesi. There is no equivalent a2os the LaTeX environment enumerate. Moreover, its size would have ten times what it is. There is no way in PreScript to get an automatic numbering.

There is a couple of things to know about the process. This can be achieved with x2ps command:. But since pack sorts them at run time, it may save time if the alphabetical C -order is more or less followed.

To be able to define new style sheets one needs GNU m4.

a2ps(1) – Linux man page

The a2ps program is a powerful, versatile tool that lets you convert simple text files into high-quality PostScript output. When automatic pretty-printing is enabled, first pack calls file to see whether the language is recognizable.

January 23, at The main advantages for using PreScript are:

Related Posts