Spiritual

A2PS PRINT PDF

an introduction to the use of the a2ps print filter, for users of the Mathematics Local-Area Network at Grinnell College. @macro pack a2ps. @dircategory Printing utilities @direntry * a2ps:: ASCII to PostScript converter * PreScript: (a2ps) PreScript Input language. By default a2ps tries to put 2 pages on each sheet, this works best side-by-side and landscape, even if you rotate the page a2ps still tries to.

Author: Akinozshura Shakticage
Country: Niger
Language: English (Spanish)
Genre: Career
Published (Last): 21 June 2008
Pages: 258
PDF File Size: 2.57 Mb
ePub File Size: 6.82 Mb
ISBN: 924-7-19497-522-3
Downloads: 10589
Price: Free* [*Free Regsitration Required]
Uploader: Yolkis

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this prinh notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

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.

This document describes pack version 4. The latest versions may be found on decrease order of service quality: A2pa pack formats named files for printing in a PostScript printer; if no file is given, pack reads from the standard input.

The output may be sent to the printer or to the standard output or saved into a pdint. The format used is nice and compact: This is very useful for making archive listings of programs. Compared to the previous versions, pack version 4. Syntactic prijt pack is not a powerful syntactic pretty-printer: Indeed pack just looks for some keywords, or some sequencesi. It is for the same reason that you can’t expect pack to highlight the function definitions in C. Calling pack is fairly simple: Here after bool stands for boolean.

It is considered as true i. The corresponding short option takes no arguments, but corresponds to a positive answer. These are the options through which you may define the information you want to see all around the pages. All these options support text as an argument, which is composed of plain strings and meta sequences.

See section Meta sequences for details. Headers, footers, titles and the water mark are strings in which some meta sequences are later replaced by their actual values. On a new sheet pack first draws the water mark, then the content of the first page, then the frame of the first page, ditto with the othersand finally the sheet header and footers.

This order must be taken into account for some meta sequences e.

Currently pack support the following meta sequences: These two are provided in the case pack would be used by the print service: Tags are piece of text pack fetches in the files, according to the style.

  AIDE XLSTAT PDF

For instance, in mail-folder style, tag 1 is the title of the mail, and tag 2 its author. If the width is negative, the value will be printed left-justified. Page device is a A2pss level 2 feature that offers an uniform interface to control printer’s output device. Although all level 2 interpreters support page device, they do not have orint support all page device options. For example some printers can print in duplex mode and some can not. Refer to the documentation of your printer for supported options.

The statusdict is a special storage entity in PostScript called a dictionnaryin which some variables and operators determine the behavior of the printer. As for page device, those variables are device dependent: In the order, they are: All other lines have the format:. It uses two special features wrt non-English z2ps The problem with this approach is that a lot more than just messages and time information is affected: So if you just want messages and time format to be localized, then prrint If you want to do a profound translation work, contact us.

But we need in urgency small pieces of information: The main feature of pack is its pretty-printing capabilities. Two different levels of pretty printing can be reached: Keywords are written in bold, strings in Times, comments in Italic etc. In this mode, some keywords are replaced by a Symbol character which best represents them. Two things are to retain from this: Known languages pack version 4. This style also suits news files.

University of Manitoba – Information Services and Technology – Printing using the a2ps command

Only the pure specification is then printed. In the following is described how the style sheets are defined. You may skip this section if you don’t care how pack does this, and if you don’t expect to implement new styles. When automatic pretty-printing is enabled, first pack calls file to see whether the language is recognizable. Otherwise, the suffix of the file is compared with every name and abbreviation. On failure, plain style is used. Hence it needs two alphabets: Keywords and regular symbols A keyword if recognized, is just written in a special font.

A symbol, when recognized, is replaced by the corresponding character in the symbol font.

To be recognized, both need to start by a character in the first alphabet and to be immediately followed by a character which does not belong to the second alphabet.

They need not to be preceded and followed by characters belonging to the alphabet. Sequences are string is a string between two markers. A marker is a priht string. Three fonts are used: Escapes are prinh copied when found in a sequence. Their main use is to avoid a sequence from being terminated too soon, e. Verbatims are immediately copied wherever met.

If the style is case insensitive, the case does not matter for the keyword, symbol and sequence recognition. Other categories are not concerned by case sensitivity. To be able to define new style sheets one needs GNU m4. There is a couple of things to know about the process. The order in which you define the elements of a category but the sequences does not matter.

  ERGONOMIE AM ARBEITSPLATZ SUVA PDF

But since pack sorts them at run time, it may save time if the alphabetical C -order is more or less followed. For the particular case of the special symbols, note that you may have to protect the symbols which pring prefixed by them. A closing marker may require to end on end-of-line. It is also possible to specify several closing markers, just by putting them one after the other, for instance taken for the ada style sheet: Please, respect the alphabetical order in which the languages are introduced.

Since bold sequences, special characters etc. The main advantages for using PreScript are: It can be a good candidate for generation of PostScript output syntactic pretty-printers, generation of various reports etc. If the command uses an argument, it is given between curly braces with no spaces between the command name and the argument. The main limit on ;rint is that no command can be used inside another command. There is a big menagerie of symbols.

The following characters should also be quoted to produce good LaTeX files, but are accepted by PreScript: Hence whenever special characters or symbols are introduced, they should be at the outer most level.

General Purpose PostScript Generating Utility

There is a general mechanism to avoid special sequences from being interpreted: Some LaTeX commands have no equivalent in PreScriptbut are simply skipped at compilation time if immediately followed by an end-of-line: They should be defined in the preamble:. There is no way in PreScript to get an automatic numbering. Pront is no equivalent a22ps the LaTeX environment enumerate. Hence, if one specifies that arguments of those functions should be ignored in the preamble of the LaTeX document, the numbering is emulated.

PreScript and pack can be used for one-the-fly formating. There seems to be as many tastes a2px there are humans, so Nevertheless, here are some tips on how to design your PostScript styles. There are two PostScript instructions you might want to use in your new PostScript prologue: It defines the gray level used.

Those three numbers are related to red, green prrint blue proportions used to designate a color. Why not having used yacc and such There are several reasons why we decided not to use grammars to parse the files. First it would have made the design of the style sheets much more tricky, and today pack would know only 4 or 5 languages. Third, mixing several parsers within one program is not x2ps. Moreover, its size would have ten times what it is.