man.bsd.lv manual page server

Manual Page Search Parameters

GR2PS(L) GR2PS(L)

gr2ps - convert Gremlin files to PostScript

gr2ps [ -c ] [ -s X Y ] [ -t X Y ] [ -o file ] [ file ... ]

This program takes a picture description produced by Gremlin and converts it to PostScript source that can be printed on any printer that supports this language, such as the Apple LaserWriter. Gr2ps handles all the different types of elements in this gremlin output and produces a good looking page on a LaserWriter.

The command takes the name of a gremlin file (default is standard input) and writes the resulting PostScript file to its standard output, unless the -o option (see below) is given, in which case it writes to the specified file.

Normally, gr2ps produces a file that can be sent directly to a PostScript printer without any further editing. However, if the -c option (see below) is given, it produces a file that is intended to be imbedded into a larger PostScript document. Only the leading comment and the trailing showpage command are ommitted when -c is specified, all the element descriptions are the same. This is meant to be used when a PostScript file is being imbedded into a document of another type (such as TeX, using \special). If this option is given, it is a good idea to bracket the resulting file in the PostScript gsave and grestore commands so that commands will not affect later portions of the surrounding document.

Omit leading and trailin context which would allow the resulting file to be sent directly to the printer.
Insert a PostScript command into the output which would scale the image according to the aruments given to this option. There should be two floating point numbers which are aruments, the scale factor in the X and Y dimensions. A scale of 1.0 1.0 would mean no actual change; scaling may be positive or negative.
Insert a PostScript commmand into the output which would translate (move) the image by the given amount. There should be two floating point numbers as aruments, the translation amount in the X and Y directions. A translation of 0.0 0.0 means no change; translations may be positive or negative.
Write output to a certain file rather than the standard output. The -o option must take as an argument the name of a file which it can create.

gremlin(L), grn(L), tex(L)

John Coker,
University of California, Berkeley
john@renoir.Berkeley.EDU

Peehong Chen,
University of California, Berkeley
phc@renoir.Berkeley.EDU

PostScript is a trademark of Adobe Systems, Inc.
Apple and LaserWriter are trademarks of Apple Computers.

Because the Gremlin coordinate system is different from the PostScript one, the -s and -t options are almost always necessary to get the output sized and placed properly.

8/1/86 4th Berkeley Distribution