Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ psfix(1) — Mathematica

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

math(1)

sed(1v)

bc(1)

PSFIX(1)  —  Silicon Graphics 27 July 1989

NAME

psfix − modify PostScript from Mathematica for output

SYNOPSIS

psfix [ −height height ] [ −width width ] [ −lmarg margin ] [ −rmarg margin ] [ −tmarg margin ] [ −bmarg margin ] [ −land ] [ −stretch ] [ filename ... ]

DESCRIPTION

psfix takes one or more files containing PostScript graphics descriptions produced by Mathematica and produces a file suitable for output to a standard PostScript rendering device, such as a PostScript printer or PostScript display driver. 

By default, psfix produces output for a standard 8.5 by 11 inch page with margins of one half inch at the top, bottom, and left and right sides.  Any or all of these six dimensions may be set explicitly by means of the appropriate options.  Dimensions given as arguments to psfix should be in inches. 

psfix is a shell script that adds a prolog and epilog to the PostScript files produced by Mathematica.  psfix uses sed(1v) to perform formatting, and bc(1) to compute the bounding box from the height and width spefications.

psfix uses Courier-family fonts for text. The default size is 10 point. 

OPTIONS

-height number
Make a page description of the indicated height (in inches), including top and bottom margins.  Default is 11 inches.

-width number
Make a page description of the indicated width (in inches), including left and right margins.  Default is 8.5 inches.

-lmarg number
Leave a left margin of the indicated size (in inches). Default is one half inch.

-rmarg number
Leave a right margin of the indicated size (in inches). Default is one half inch.

-tmarg number
Leave a top margin of the indicated size (in inches). Default is one half inch.

-bmarg number
Leave a bottom margin of the indicated size (in inches). Default is one half inch.

-landRotate graphics to produce landscape-mode output.  This setting exchanges the current height and width settings, so should be specified after -height and -width if they are used. 

-stretch
Stretch the graphic to fill the page (within margins), ignoring the aspect ratio specified in the PostScript description of the graphic. Unless this option is selected, the graphic will not fill the page, but will occupy the largest rectangle of the correct aspect ratio that fits on the page.

SEE ALSO

math(1), sed(1v), bc(1)

S. Wolfram, Mathematica: A System for Doing Mathematics by Computer, Addison-Wesley, 1988

Adobe Systems Inc., PostScript Language, Addison-Wesley, 1986

BUGS

psfix does not set up a new PostScript dictionary for the definitions in its prolog. 

psfix does not check its arguments closely. Syntax errors will confuse it. 

Version   —  September 12, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026