For a reference manual, see Chapter 3 [Invoking a2ps], page 9. For the definition of some words, see Appendix A [Glossary], page Table of Contents. NAME. a2ps – format files for printing on a PostScript printer. SYNOPSIS. a2ps [OPTIONS] FILES a2ps [OPTIONS] DESCRIPTION. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire.

Author: Mitaur Kazrabei
Country: Honduras
Language: English (Spanish)
Genre: Literature
Published (Last): 27 October 2015
Pages: 265
PDF File Size: 19.80 Mb
ePub File Size: 10.91 Mb
ISBN: 286-1-72833-446-5
Downloads: 62946
Price: Free* [*Free Regsitration Required]
Uploader: Zulujinn

A marker is a fixed string.

General Purpose PostScript Generating Utility

It was very slow and contained many bugs. In the following is described how the style sheets are defined. And you must tell them their q2ps. You may skip this section if you don’t care how pack does this, and if you don’t expect to implement new styles.

It is for the same reason that you can’t expect pack to highlight the function definitions in C. The latest versions may be found on decrease order of service quality: They need not to be preceded and followed by characters belonging to the alphabet.

You must make sure that they, too, receive or can get the source code. The statusdict is a special storage entity in PostScript called a dictionnaryin which some variables and operators determine the behavior of the printer.

First it would have made the design of the style sheets much more tricky, and today pack would know only 4 or 5 languages. Hence it needs two alphabets: Page device is a PostScript level 2 feature that offers an uniform interface to control printer’s output device. It can be a good candidate for generation of PostScript output syntactic pretty-printers, generation of various reports etc. Why not having used yacc and such There are several reasons why we decided not to use grammars to parse the files.


To achieve these subtler effects, we need a print filter — a program that applies a transformation to the print job and sends the result to the printer through lpralthough the actual invocation of lpr is usually invisible. Here after bool stands for boolean. It is considered as true i. 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.

If the width is negative, the value will be printed left-justified. If the printout is more than one sheet, hit Enter in the terminal window from which gs was started to scroll down to the next page.

Two different levels of pretty printing can be reached: The basic command for sending a file to a MathLAN printer is lprwith or without a command-line option -Pduerer-Ppacioli-Pescher-Pmoxonor -Ptory to specify a printer. This conversion can be achieved with a2ps a2ps package. This is very useful for making archive listings of programs. John David Stone stone cs.

The a2ps program is a powerful, versatile tool that lets you convert simple text files into high-quality PostScript output. PreScript and pack can be used for one-the-fly formating. In the order, they are: However, a2ps supports very many command-line options that modify this behavior.

Two things are to retain from this: For instance, in the exmh mail agent, the print command can be changed by moving the mouse pointer onto the button labelled Preferencesclicking the left mouse button, moving the mouse pointer onto the button labelled Printing in the Preferences window that appears, clicking the left mouse button, and editing either or both of the text fields labelled Text print command and PostScript print command to contain a template for an a2ps command line, such as.

Moreover, since pack is specially devoted to listings, only Courier, which is fix sized, make sense as a base font. Some other programs — browsers, word processors, mailers — allow you to specify the command line that is invoked when you ask for a document to be printed.


It uses two special features wrt non-English languages: The order in which you define the elements of a category but the sequences does not matter. Verbatims are immediately copied wherever met. Most of them make lpr the default, but it is often possible to ask for a2ps, with or without command-line options, instead. See section Meta sequences for details. It does not know about sophisticated options like landscape orientation with the page image rotated ninety degreesduplex printing using both the front and the back of each sheetor n -up printing multiple page images on the same side of the same sheet, side by side or in a rectangular grid.

Three fonts are used: You might nevertheless want to change the print command to a2ps, to take advantage of some of the other options.

a2ps and enscript

In this mode, some keywords are replaced by a Symbol character which best represents them. Reformatting PostScript with psutils.

A closing marker may require to end on end-of-line. Similarly, it will run a file containing Java source 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. When printing a human file only English may be supportedspelling should be checked.

Hence whenever special characters or symbols are introduced, they should be at the outer most level.

One common way to run a2ps is from a shell in a terminal emulator. It would be great if pack could easily print files written in ISO Latin 2. Calling pack is fairly simple:

iPhone X