Table of contents


NAME

epsutil - a utility for manipulating Encapsulated PostScript files

SYNOPSIS

epsutil [ BG=color-value ] [ BOUNDINGBOX=llx,lly,urx,ury ] [ CHECK=check ] [ CLIP=clip ] [ COLORMODEL=[CMYK|GRAY|HSB|RGB|X] ] [ FG=color-value ] [ FRAME=frame-thickness ] [ FRAMEFG=color-value ] [ GRID=grid ] [ GRIDX=xmin,dx,xmax,units,gridstep,tickstep,ticklength,thickmultiple,fontname,fontsize ] [ GRIDY=ymin,dy,ymax,units,gridstep,tickstep,ticklength,thickmultiple,fontname,fontsize ] [ HEIGHT=height ] [ ID=idx,idy[,fontsize[,fontname]] ] [ IDBG=color-value ] [ IDFG=color-value ] [ LINEWIDTHSCALE=line-width-scale ] [ MAXLINEWIDTH=maximum-line-width ] [ MINLINEWIDTH=minimum-line-width ] [ MXY=page-magnification ] [ MX=page-x-magnification ] [ MY=page-y-magnification ] [ OXY=origin ] [ OX=llx-origin ] [ OY=lly-origin ] [ PAPER=paper-name ] [ PSCODE='PostScript code' ] [ PSFILE=psfile,psfile,... ] [ PAGEBG=color-value ] [ PMXY=page-magnification-x-and-y-origin ] [ PMX=page-magnification-x-origin ] [ PMY=page-magnification-y-origin ] [ PTXY=page-translation-x-and-y ] [ PTX=page-translation-x ] [ PTY=page-translation-y ] [ RGBFILE=rgbfile ] [ ROTATE=degrees ] [ SXY=scale-factor ] [ SX=x-scale-factor ] [ SY=y-scale-factor ] [ WIDTH=width ] [ < ] old-PS-file   > new-PS-file

DESCRIPTION

epsutil filters an Encapsulated PostScript file, or files, named on the command line (or stdin if no filenames are given), to stdout, inserting wrapper PostScript to provide optionally

The output file fully conforms to the PostScript Document Structuring Conventions defined in Appendix G of the PostScript Language Reference Manual, Second Edition, Addison-Wesley (1985), ISBN 0-201-10174-2 (the Adobe red book).

The output of this program is also suitable input to it; after four filtering steps with 90-degree rotation selected, the original figure will be recovered, although the output PostScript file will be about 6200 bytes larger for each rotation because of the wrapper overhead. That overhead could be reduced to about 4100 bytes by eliminating extra spaces and comments beginning with a single percent; readability is, however, considered more important.

The original command line that was used to create the output file is preserved in a %%Title comment in the second line of the output file, as a record of the requested transformations.

A verbatim copy of the original file, minus any %%EOF comments, is embedded in the output between the %%BeginDocument and %%EndDocument lines, where it can be recovered simply by stripping the wrapping PostScript.


OPTIONS

epsutil options take the form of NAME=value assignments, rather than the more usual hyphen-prefixed options common in other UNIX utilities. If an option is given more than once, its last assigned value is used.

If no dimension unit is specified in the variable values described later, physical dimensions are assumed to be measured in standard PostScript units of big points:

72bp = 1in = 25.4mm

Otherwise, any of the TeX dimension units of bp (big point), cc (cicero), cm (centimeter), dd (didot point), in (inch), mm (millimeter), pc (pica), pt (point), or sp (scaled point), may suffix a number, and the value will be converted to big points internally. For convenience, here are conversion tables for these units:



Letter case is significant in option names and dimension units.

Several options may be assigned lists of items. List items must be separated by any single character other than a letter, digits, plus, minus, or period. However, multiple spaces are reduced to single spaces before extracting list items. Comma or slash is a readable choice for a separator character, and avoids the need to quote the values to protect them from possible shell interpretation.

Color

The options BG=color-value, FG=color-value, FRAMEFG=color-value, IDBG=color-value, IDFG=color-value, and PAGEBG=color-value provide for setting the color of the BoundingBox background (BG) and foreground (FG), the frame foreground (FRAMEFG), the identifying label background (IDBG) and foreground (IDFG), and the page background (PAGEBG).

Color values can be provided in several different color models, set by the COLORMODEL=[CMYK|GRAY|HSB|RGB|X] option. In most cases, epsutil can guess the color model from the syntax of the color value, so that the COLORMODEL option rarely needs to be set.

A color can be specified as:

Color names are looked up in the file specified by the RGBFILE=rgbfile option, or, if that is not given, in the X Window System rgb.txt color mapping file. These files associate red, green, and blue intensities with color names; their lines contain three numbers in the range 0..255, followed by a color name, separated by whitespace. The rgb.txt file is found by searching a built-in directory path that covers all major UNIX systems; that path can be overridden by defining a value for the environment variable RGBPATH. For example, on an IBM RS/6000 AIX system, you could set that variable to /usr/lpp/X11/lib/X11/It_IT in order to get Italian color names.

Hexadecimal colors in the X Window System color model specify red, green, and blue intensities on a scale of 0..15 (3 hexadecimal digits), 0..255 (6 hexadecimal digits), 0..4095 (9 hexadecimal digits), or 0..65536 (12 hexadecimal digits). Thus, #3cf corresponds to 3/15 red, 12/15 green, and 15/15 blue, that is, 0.2 red, 0.8 green, and 1.0 blue.

In the RGB model, three numbers in the range 0..1 define red, green, and blue intensities. In this model, major colors are:


Like the RGB model, the HSB (hue, saturation, brightness) model also has three numbers in the range 0..1. Hue runs through the rainbow (approximately, red = 0, orange = 0.1, limegreen = 0.2, green = 0.3, cyan = 0.5, blue = 0.6, magenta = 0.8, deeppink = 0.9, red = 1). Saturation goes from 0 (no color = black) to 1 (full color). Brightness goes from 0 (dark) to 1 (bright). The HSB model is the only one for which COLORMODEL must be defined, because epsutil otherwise assumes a default RGB model, and other models can be determined from context.

The color printing-industry standard CMYK (cyan, magenta, yellow, black) model requires four numbers in the range 0..1. The first three are values for cyan, magenta, and yellow (0 means no color, 1 means full color). The fourth value is the amount of black (0 means none, 1 means completely black) to be added to darken the color.

Finally, in the GRAY model, a single number in the range 0..1 defines the amount of gray: 0 is black and 1 is white. A value of g in the GRAY model is equivalent to g,g,g in the RGB model.

Sample options:

FG=HotPink4
BG=0.9 (GRAY assumed)
PAGEBG=1,1,0 (RGB assumed)
RGBFILE=mycolors.rgb
IDBG=#7ed (X assumed)
COLORMODEL=HSB   BG=0.6,0.8,0.9
FG=0.5,1,0.8,0.7 (CMYK assumed)

BoundingBox

Encapsulated PostScript files are required to contain a %%BoundingBox comment that defines the lower-left and upper-right corner coordinates in big points. Sadly, most PostScript-producing programs produce (sometimes wildly) incorrect coordinate values in this comment, so manual adjustment is frequently necessary. Also, sometimes only a portion of the original figure is required, necessitating definition of a new BoundingBox.

To avoid the need for modifying the original PostScript file, the two corner coordinate pairs can be specified as four optionally-dimensioned numbers for the value of the BOUNDINGBOX option. Values specified this way override those in the %%BoundingBox comment.

When a BOUNDINGBOX value is given, especially if it covers only a portion of the original figure, clipping should be selected. See the CLIP option description following.

Although fractional dimensions are accepted, after converting to big points, the values actually used will be rounded down to the nearest integer at the lower-left corner, and up to the nearest integer at the upper-right corner. This is a requirement of the PostScript Document Structuring Conventions.

Sample options:

BOUNDINGBOX=10,20,500,750
BOUNDINGBOX='10 20 500 750'
BOUNDINGBOX=0.1in,0.3in,18cm,25cm
BOUNDINGBOX=10mm/20mm/30pc/40pc

BoundingBox frame

A rectangular frame of a specified line thickness will be drawn around the outside of the original BoundingBox if the FRAME=frame-thickness option is given.

If linewidth scaling is requested, the frame will also be affected by the scaling.

The output BoundingBox will automatically be enlarged by the twice the frame thickness, and any MAXLINEWIDTH value will be adjusted upward if necessary to ensure that the frame can be drawn properly.

Sample options:

FRAME=3
FRAME=3mm

Checking for non-EPSF operators

If a non-zero value of the CHECK=check option is given, check for the presence of PostScript operators that are not permitted in EPS files. This check is not guaranteed to succeed; see the BUGS section later for why.

Because this option requires additional pattern matching on every input line, and is only occasionally needed, the default is CHECK=0 to suppress the check.

Sample options:

CHECK=0
CHECK=1

Clipping

If a zero value of the CLIP=clip option is given, suppress clipping the figure to the BoundingBox.

Although EPS-including programs are supposed to provide this clipping automatically, not all do so. Thus, the default in this program is to turn on clipping.

The clipping path is set after geometric transformations have been completed, but before any drawing operations are performed. Thus, the BoundingBox frame, and the background color, are subject to clipping.

Sample options:

CLIP=0
CLIP=1

Grid

A non-zero value for the GRID=grid option requests that a grid be drawn over the picture to allow convenient determination of BoundingBox coordinates for a portion of the view.

The grid is always drawn after the image, so that it cannot be overwritten by it.

The default grid is in standard PostScript units of big points, and is matched to the selected paper size, leaving a small margin near the page edges where most PostScript printers are incapable of printing.

For greater control, you can specify suitable values for the GRIDX and GRIDY options. These each take the form of a list of up to ten items: minimum number, numbering stepsize, maximum number, dimension unit name, grid stepsize, tick stepsize, tick length, thickening multiple, font size, and font name. List items can be omitted, in which case internal defaults corresponding to the selected paper type will be supplied; see the Paper type section later. As with ordinary coordinate values, an omitted dimension on a number defaults to big points.

The default setting for the horizontal axis on American standard A-format letter paper is GRIDX=50bp,25bp,575bp,bp,25bp,5bp,5bp,100bp,9bp,Helvetica. This means that the axis will run from 50bp in steps of 25bp to 575bp, using units of big points, with grid lines every 25bp, tick marks 5bp long every 5bp, grid lines thickened at multiples of 100bp, with text in a 9bp-Helvetica font. Thus, the axis will be numbered 25, 75, 100, ..., 550, 575, with grid lines drawn at the numbers, and 5 tick intervals between each pair of grid lines. If the eighth value were changed from 100bp to 0bp, then grid line thickening would be suppressed.

Sample options:

GRID=0
GRID=1

GRIDX=,,,,,,,100bp
GRIDX=,,,,,,,,18bp,Times-Bold
GRIDX=50bp,25bp,575bp,bp
GRIDX=0bp,50bp,600bp,bp,5bp,5bp,5bp,100bp,9bp,Palatino-BoldItalic
GRIDY=0cm@1cm@25cm@cm@1cm@1mm@@5cm
GRIDY=0in,1in,11in,in
GRIDY=0in:1in:11in:in
GRIDY=0/50/700

Identifying label

When working with large numbers of figures, or experimenting with various options, it is sometimes difficult to keep track of them. The ID option can be specified to provide a page location where an identifying label recording the command line will be printed.

The label location is measured on the output page, relative to the lower-left corner, independent of geometric transformations. The label is drawn after the image and the grid, in a shaded box which hides what lies under it.

An optional third value defines the font size (default: 24bp), and an optional fourth value defines the font name (default: Helvetica-Bold).

The font size is automatically reduced to fit a long label into the available space, so that it will always be completely visible.

For convenience, the special assignment ID=1 will produce a label in a default position, near the top of the page.

Sample options:

ID=1
ID=50,750
ID=0.4in/0.4in/12pt
ID='10mm 10mm 8pt Helvetica-Narrow'

Linewidth control

Sometimes, linewidths need adjustment, usually to thicken them for better reproduction. The LINEWIDTHSCALE value causes all linewidths to be multiplied by that value. This scaling also affects any framing rectangle that is requested.

PostScript allows zero linewidths, which means the thinnest line that the output device is capable of producing. Such linewidths would not be affected by scaling. Thus, a value for MINLINEWIDTH can be given to force all lines to be at least that thick, and therefore, subject to scaling.

To prevent scaling from producing ridiculously thick lines, a MAXLINEWIDTH value can be set to force an upper limit to linewidths. If not specified, it defaults to 24.

If linewidth scaling is applied to a PostScript file that already has linewidth scaling, the two scalings are not cumulative: only the last scaling applied will have any effect. This unfortunate irregularity is a consequence of the inability of the PostScript language to permit redefinition of an operator to more than one level; attempts to do otherwise simply produce infinite loops in the PostScript interpreter.

Sample options:

LINEWIDTHSCALE=3
MAXLINEWIDTH=6
MAXLINEWIDTH=6bp
MINLINEWIDTH=0.1pt

Magnification of page

To facilitate precise measurement of the BoundingBox, it can be helpful to magnify the page.

The MX, MY, and MXY options define magnification factors which are applied after page translation, and before all other transformations. MX and MY are used if provided; otherwise, MXY is used for both x and y scaling. If none of these is specified, then no page magnification is done; this is equivalent to setting MXY=1.

The page location about which magnification is done is (PMX,PMY), or (PMXY,PMXY) if PMX and PMY are not provided. The default page location is the lower-left corner, (0bp,0bp).

As a convenience, symbolic coordinates of nine points of the BoundingBox (four corners, four edge centers, or box center) may be used for the page location values: combine a corner/edge/center designator L (left), R (right), B (bottom), T (top), C (center), or alternatively, compass-point names, with an additional coordinate designator X or Y for PMX and PMY,



TL        TC        TR     NW         N        NE
------------------ ------------------
| | | |
| | | |
CL| C |CR W| C |E
| | | |
| | | |
------------------ ------------------
BL BC BR SW S SE
.ce 0

.fi
\}
.if t \{
.lf 891
.PS 1.350i 5.600i
.\" 0 -0.675 5.6 0.675
.\" 0.000i 1.350i 5.600i 0.000i
.nr 00 \n(.u
.nf
.nr 0x 1
\h'5.600i'
.sp -1
\D'f 250u'\h'-250u'
.sp -1
\h'2.300i'\v'1.350i'\D'P0.000i -1.350i -1.800i 0.000i 0.000i 1.350i'
.sp -1
\D't -1.000p'\h'1.000p'
.sp -1
\h'2.300i'\v'1.350i'\D'p0.000i -1.350i -1.800i 0.000i 0.000i 1.350i'
.sp -1
.lf 898
\h'1.400i-(\w'C'u/2u)'\v'0.675i-(0v/2u)+0v+0.22m'C
.sp -1
.lf 899
\h'2.300i'\v'0.000i-(0v/2u)+0v+0.22m' TR
.sp -1
.lf 900
\h'2.300i'\v'0.675i-(0v/2u)+0v+0.22m' CR
.sp -1
.lf 901
\h'2.300i'\v'1.350i-(0v/2u)+0v+0.22m+.5v' BR
.sp -1
.lf 902
\h'1.400i-(\w'BC'u/2u)'\v'1.350i-(0v/2u)+0v+0.22m+.5v'BC
.sp -1
.lf 903
\h'1.400i-(\w'TC'u/2u)'\v'0.000i-(0v/2u)+0v+0.22m-.5v'TC
.sp -1
.lf 904
\h'0.500i-\w'BL 'u'\v'1.350i-(0v/2u)+0v+0.22m+.5v'BL
.sp -1
.lf 905
\h'0.500i-\w'CL 'u'\v'0.675i-(0v/2u)+0v+0.22m'CL
.sp -1
.lf 906
\h'0.500i-\w'TL 'u'\v'0.000i-(0v/2u)+0v+0.22m'TL
.sp -1
\h'5.600i'\v'1.350i'\D'P0.000i -1.350i -1.800i 0.000i 0.000i 1.350i'
.sp -1
\h'5.600i'\v'1.350i'\D'p0.000i -1.350i -1.800i 0.000i 0.000i 1.350i'
.sp -1
.lf 910
\h'4.700i-(\w'C'u/2u)'\v'0.675i-(0v/2u)+0v+0.22m'C
.sp -1
.lf 911
\h'5.600i'\v'0.000i-(0v/2u)+0v+0.22m' NE
.sp -1
.lf 912
\h'5.600i'\v'0.675i-(0v/2u)+0v+0.22m' E
.sp -1
.lf 913
\h'5.600i'\v'1.350i-(0v/2u)+0v+0.22m+.5v' SE
.sp -1
.lf 914
\h'4.700i-(\w'S'u/2u)'\v'1.350i-(0v/2u)+0v+0.22m+.5v'S
.sp -1
.lf 915
\h'4.700i-(\w'N'u/2u)'\v'0.000i-(0v/2u)+0v+0.22m-.5v'N
.sp -1
.lf 916
\h'3.800i-\w'SW 'u'\v'1.350i-(0v/2u)+0v+0.22m+.5v'SW
.sp -1
.lf 917
\h'3.800i-\w'W 'u'\v'0.675i-(0v/2u)+0v+0.22m'W
.sp -1
.lf 918
\h'3.800i-\w'NW 'u'\v'0.000i-(0v/2u)+0v+0.22m'NW
.sp -1
.lf 920
.sp
.sp 1.350i+1
.if \n(00 .fi
.br
.nr 0x 0
.lf 921
.PE
.lf 922
\}
.PP
In the symbolic value, neither the letter order,
nor the letter case, is significant.
.PP
Page magnification does
.I not
affect the BoundingBox coordinates, so it must
.I not
be used for production of final EPS files.
.PP
Sample options:
.RS
.nf
.BI MX =2
.BI MY =0.5
.BI MXY =3
.PP
.BI PMX =100bp
.BI PMY =1cm
.BI PMXY =5cc
.BI PMX =SWX
.BI PMX =BLX
.BI PMX =xtr
.BI PMY =cy
.BI PMY =ney
.BI PMXY =C
.fi
.RE
.\"-----------------------------------------------
.SS "Paper type"
You can alter the default paper type by
specifying a value for the
.B PAPER
option. The paper types recognized are:
.ne 1i
.\" NB: Leave blank lines around table header to
.\" prevent their loss from col in the nroff ->
.\" txt/html conversion.
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if n .nr #~ 0.6n
.ds #d .d
.if \(ts\n(.z\(ts\(ts .ds #d nl
.fc
.nr 33 \n(.s
.rm 80 81 82 83 84 85
.nr 80 0
.nr 38 \wName
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \w_
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wB
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wC
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wD
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wE
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wComputer-1411
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wLegal
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wLetter
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wUS-Legal
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA-L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wComputer-1411-L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wLegal-L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wLetter-L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wUS-Legal-L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wCOM10
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wDL
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wExecutive
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wMonarch
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA4Small
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wLedger
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wLetterSmall
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wNote
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA0
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA1
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA2
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA3
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA4
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA5
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA6
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA7
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA8
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA9
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA10
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA0L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA1L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA2L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA3L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA4L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA5L
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \wA6L
.if \n(80<\n(38 .nr 80 \n(38
.80
.rm 80
.nr 81 0
.nr 38 \wWidth
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w_
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w8.5in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w11in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w17in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w22in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w34in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w14in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w8.5in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w8.5in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w8.5in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w11in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w11in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w13in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w11in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w14in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w4.1in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w110mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w7.25in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w3.9in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w210mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w11in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w8.5in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w8.5in
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w841mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w594mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w420mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w297mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w210mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w148mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w105mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w74mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w52mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w37mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w26mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w1189mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w841mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w594mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w420mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w297mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w210mm
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \w148mm
.if \n(81<\n(38 .nr 81 \n(38
.81
.rm 81
.nr 82 0
.nr 38 \wHeight
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w_
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w11in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w17in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w22in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w34in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w44in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w11in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w13in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w11in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w14in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w8.5in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w14in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w8.5in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w8.5in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w8.5in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w9.5in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w220mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w10.5in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w7.5in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w297mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w17in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w11in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w11in
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w1189mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w841mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w594mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w420mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w297mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w210mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w148mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w105mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w74mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w52mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w37mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w841mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w594mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w420mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w297mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w210mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w148mm
.if \n(82<\n(38 .nr 82 \n(38
.nr 38 \w105mm
.if \n(82<\n(38 .nr 82 \n(38
.82
.rm 82
.nr 83 0
.nr 38 \wName
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \w_
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wA7L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wA8L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wA9L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wA10L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB0
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB1
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB2
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB3
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB4
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB5
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB6
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB0L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB1L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB2L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB3L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB4L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB5L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wB6L
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wC0
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wC1
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wC2
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wC3
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wC4
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wC5
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wC6
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wOctavo
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wSixmo
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wQuarto
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wFoolscap
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wGovernment-legal
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wFolio
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wArchA
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wArchB
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wArchC
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wArchD
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wArchE
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wFlsa
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wFlsb
.if \n(83<\n(38 .nr 83 \n(38
.nr 38 \wHalfLetter
.if \n(83<\n(38 .nr 83 \n(38
.83
.rm 83
.nr 84 0
.nr 38 \wWidth
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w_
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w105mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w74mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w52mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w37mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w1000mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w707mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w500mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w353mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w250mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w176mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w125mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w1414mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w1000mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w707mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w500mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w353mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w250mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w176mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w1294mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w916mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w647mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w458mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w323mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w229mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w161mm
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w5in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w6.5in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w8in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w8.5in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w8.5in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w8.3in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w9in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w12in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w18in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w24in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w36in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w8.5in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w8.5in
.if \n(84<\n(38 .nr 84 \n(38
.nr 38 \w5.5in
.if \n(84<\n(38 .nr 84 \n(38
.84
.rm 84
.nr 85 0
.nr 38 \wHeight
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w_
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w74mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w52mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w37mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w26mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w1414mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w1000mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w707mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w500mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w353mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w250mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w176mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w1000mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w707mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w500mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w353mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w250mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w176mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w125mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w916mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w647mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w458mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w323mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w229mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w161mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w114mm
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w8in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w8in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w10in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w13in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w13in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w13in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w12in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w18in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w24in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w36in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w48in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w13in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w13in
.if \n(85<\n(38 .nr 85 \n(38
.nr 38 \w8.5in
.if \n(85<\n(38 .nr 85 \n(38
.85
.rm 85
.nr 38 1n
.nr 79 0
.nr 40 \n(79+(1*\n(38)
.nr 80 +\n(40
.nr 41 \n(80+(3*\n(38)
.nr 81 +\n(41
.nr 42 \n(81+(3*\n(38)
.nr 82 +\n(42
.nr 43 \n(82+(3*\n(38)
.nr 83 +\n(43
.nr 44 \n(83+(3*\n(38)
.nr 84 +\n(44
.nr 45 \n(84+(3*\n(38)
.nr 85 +\n(45
.nr TW \n(85
.nr TW +1*\n(38
.if t .if \n(TW>\n(.li .tm Table at line 1062 file Input is too wide - \n(TW units
.ne 43v+2p
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #a 0-1
.eo
.de T#
.ds #d .d
.if \(ts\n(.z\(ts\(ts .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(#T>=0 .nr #a \n(#T
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#a>=0 .sp -1
.if \n(#a>=0 \h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'
.if \n(#a>=0 .sp -1
.if \n(#a>=0 \h'(|\n(43u+|\n(82u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'
.if \n(#a>=0 .sp -1
.if \n(#a>=0 \h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'
.ls
..
.ec
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\h'|\n(43u'\h'|\n(44u'\h'|\n(45u'
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Name\h'|\n(41u'Width\h'|\n(42u'Height\h'|\n(43u'Name\h'|\n(44u'Width\h'|\n(45u'Height
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\h'|\n(43u'\h'|\n(44u'\h'|\n(45u'
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0\h'|\n(41u'\h'|\n(42u'\h'|\n(43u'\h'|\n(44u'\h'|\n(45u'
.vs \n(36u
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A\h'|\n(41u'8.5in\h'|\n(42u'11in\h'|\n(43u'A7L\h'|\n(44u'105mm\h'|\n(45u'74mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'B\h'|\n(41u'11in\h'|\n(42u'17in\h'|\n(43u'A8L\h'|\n(44u'74mm\h'|\n(45u'52mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'C\h'|\n(41u'17in\h'|\n(42u'22in\h'|\n(43u'A9L\h'|\n(44u'52mm\h'|\n(45u'37mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'D\h'|\n(41u'22in\h'|\n(42u'34in\h'|\n(43u'A10L\h'|\n(44u'37mm\h'|\n(45u'26mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'E\h'|\n(41u'34in\h'|\n(42u'44in\h'|\n(43u'B0\h'|\n(44u'1000mm\h'|\n(45u'1414mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Computer-1411\h'|\n(41u'14in\h'|\n(42u'11in\h'|\n(43u'B1\h'|\n(44u'707mm\h'|\n(45u'1000mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Legal\h'|\n(41u'8.5in\h'|\n(42u'13in\h'|\n(43u'B2\h'|\n(44u'500mm\h'|\n(45u'707mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Letter\h'|\n(41u'8.5in\h'|\n(42u'11in\h'|\n(43u'B3\h'|\n(44u'353mm\h'|\n(45u'500mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'US-Legal\h'|\n(41u'8.5in\h'|\n(42u'14in\h'|\n(43u'B4\h'|\n(44u'250mm\h'|\n(45u'353mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A-L\h'|\n(41u'11in\h'|\n(42u'8.5in\h'|\n(43u'B5\h'|\n(44u'176mm\h'|\n(45u'250mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Computer-1411-L\h'|\n(41u'11in\h'|\n(42u'14in\h'|\n(43u'B6\h'|\n(44u'125mm\h'|\n(45u'176mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Legal-L\h'|\n(41u'13in\h'|\n(42u'8.5in\h'|\n(43u'B0L\h'|\n(44u'1414mm\h'|\n(45u'1000mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Letter-L\h'|\n(41u'11in\h'|\n(42u'8.5in\h'|\n(43u'B1L\h'|\n(44u'1000mm\h'|\n(45u'707mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'US-Legal-L\h'|\n(41u'14in\h'|\n(42u'8.5in\h'|\n(43u'B2L\h'|\n(44u'707mm\h'|\n(45u'500mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'COM10\h'|\n(41u'4.1in\h'|\n(42u'9.5in\h'|\n(43u'B3L\h'|\n(44u'500mm\h'|\n(45u'353mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'DL\h'|\n(41u'110mm\h'|\n(42u'220mm\h'|\n(43u'B4L\h'|\n(44u'353mm\h'|\n(45u'250mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Executive\h'|\n(41u'7.25in\h'|\n(42u'10.5in\h'|\n(43u'B5L\h'|\n(44u'250mm\h'|\n(45u'176mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Monarch\h'|\n(41u'3.9in\h'|\n(42u'7.5in\h'|\n(43u'B6L\h'|\n(44u'176mm\h'|\n(45u'125mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A4Small\h'|\n(41u'210mm\h'|\n(42u'297mm\h'|\n(43u'C0\h'|\n(44u'1294mm\h'|\n(45u'916mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Ledger\h'|\n(41u'11in\h'|\n(42u'17in\h'|\n(43u'C1\h'|\n(44u'916mm\h'|\n(45u'647mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'LetterSmall\h'|\n(41u'8.5in\h'|\n(42u'11in\h'|\n(43u'C2\h'|\n(44u'647mm\h'|\n(45u'458mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'Note\h'|\n(41u'8.5in\h'|\n(42u'11in\h'|\n(43u'C3\h'|\n(44u'458mm\h'|\n(45u'323mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A0\h'|\n(41u'841mm\h'|\n(42u'1189mm\h'|\n(43u'C4\h'|\n(44u'323mm\h'|\n(45u'229mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A1\h'|\n(41u'594mm\h'|\n(42u'841mm\h'|\n(43u'C5\h'|\n(44u'229mm\h'|\n(45u'161mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A2\h'|\n(41u'420mm\h'|\n(42u'594mm\h'|\n(43u'C6\h'|\n(44u'161mm\h'|\n(45u'114mm
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A3\h'|\n(41u'297mm\h'|\n(42u'420mm\h'|\n(43u'Octavo\h'|\n(44u'5in\h'|\n(45u'8in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A4\h'|\n(41u'210mm\h'|\n(42u'297mm\h'|\n(43u'Sixmo\h'|\n(44u'6.5in\h'|\n(45u'8in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A5\h'|\n(41u'148mm\h'|\n(42u'210mm\h'|\n(43u'Quarto\h'|\n(44u'8in\h'|\n(45u'10in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A6\h'|\n(41u'105mm\h'|\n(42u'148mm\h'|\n(43u'Foolscap\h'|\n(44u'8.5in\h'|\n(45u'13in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A7\h'|\n(41u'74mm\h'|\n(42u'105mm\h'|\n(43u'Government-legal\h'|\n(44u'8.5in\h'|\n(45u'13in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A8\h'|\n(41u'52mm\h'|\n(42u'74mm\h'|\n(43u'Folio\h'|\n(44u'8.3in\h'|\n(45u'13in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A9\h'|\n(41u'37mm\h'|\n(42u'52mm\h'|\n(43u'ArchA\h'|\n(44u'9in\h'|\n(45u'12in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A10\h'|\n(41u'26mm\h'|\n(42u'37mm\h'|\n(43u'ArchB\h'|\n(44u'12in\h'|\n(45u'18in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A0L\h'|\n(41u'1189mm\h'|\n(42u'841mm\h'|\n(43u'ArchC\h'|\n(44u'18in\h'|\n(45u'24in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A1L\h'|\n(41u'841mm\h'|\n(42u'594mm\h'|\n(43u'ArchD\h'|\n(44u'24in\h'|\n(45u'36in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A2L\h'|\n(41u'594mm\h'|\n(42u'420mm\h'|\n(43u'ArchE\h'|\n(44u'36in\h'|\n(45u'48in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A3L\h'|\n(41u'420mm\h'|\n(42u'297mm\h'|\n(43u'Flsa\h'|\n(44u'8.5in\h'|\n(45u'13in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A4L\h'|\n(41u'297mm\h'|\n(42u'210mm\h'|\n(43u'Flsb\h'|\n(44u'8.5in\h'|\n(45u'13in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A5L\h'|\n(41u'210mm\h'|\n(42u'148mm\h'|\n(43u'HalfLetter\h'|\n(44u'5.5in\h'|\n(45u'8.5in
.ta \n(80u \n(81u \n(82u \n(83u \n(84u \n(85u
.nr 31 \n(.f
.nr 35 1m
\h'|\n(40u'A6L\h'|\n(41u'148mm\h'|\n(42u'105mm\h'|\n(43u'\h'|\n(44u'\h'|\n(45u'
.fc
.nr T. 1
.T# 1
.in \n(#Iu
.35
.nr #a 0
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-47
.sp
In addition to the standard sizes, any particular
size can be requested by giving it as a list of
.I width
and
.I height
values, for example,
.I 8.5in,11in
or
.IR 210mm/297mm .
.PP
An invalid
.B PAPER
type produces a list of recognized types on
.IR stderr ,
so you can use a nonsense value like
.BI PAPER =helpme
to find out what is available.
.PP
The default paper type is installation dependent:
usually
.I A
(in the USA) or
.I A4
(elsewhere).
.PP
The page dimensions are always defined in the
output PostScript prolog as
.I PageWidth
and
.IR PageHeight ,
so that other user-defined PostScript commands can
make use of them. This is true even if the
.B PAPER
option is not used.
.PP
Besides the page dimensions, the BoundingBox
coordinates are always available for use in
PostScript as
.IR LLX ,
.IR LLY ,
.IR URX ,
and
.IR URY .
.PP
Sample options:
.RS
.nf
.BI PAPER =148mm/210mm
.BI PAPER =A5
.BI PAPER =B
.BI PAPER =Government-legal
.fi
.RE
.\"-----------------------------------------------
.SS "PostScript insertions"
Two options,
.B PSCODE
and
.BR PSFILE ,
provide for insertion of additional PostScript code
into the end of the
.I "%%BeginProlog ... %%EndProlog"
section where PostScript commands are defined.
.PP
The value of
.B PSCODE
is a string containing arbitrary literal PostScript
code.
.PP
The value of
.B PSFILE
is the name of one or more comma- or
space-separated files whose contents are to be
inserted.
.PP
When both options are specified,
.B PSFILE
is handled
.I before
.BR PSCODE ,
so that any PostScript read from files can be
overridden by literal PostScript from the command
line.
.PP
For additional power and flexibility, this code
can also optionally redefine one or more
.I hooks :
.IR BeginPageSetupHook ,
.IR EndPageSetupHook ,
.IR BeginDocumentHook ,
.IR EndDocumentHook ,
and EndJobHook. These commands are executed at the stages indicated by their names, allowing PostScript code to be effectively inserted at five different places in the execution stream, without the need for tedious hand editing. The inserted PostScript, including the hooks, is executed with a private dictionary, EPSutilDict, at the top of the dictionary stack. This dictionary is large (1000 elements), so that it is highly unlikely that dictionary overflow can occur. In any event, this could be a problem only with older PostScript devices, since Level 2 PostScript, which automatically enlarges dictionaries as needed, dates from 1990, and most PostScript devices manufactured since then fully support it. If you define hooks in private packages of macros, you will soon encounter the need for extending an existing hook. If each package just does something like
/EndJobHook { ... code ... } def
then only the last-loaded hook definition will survive. Fortunately, there is a solution to this problem which works for PostScript Version 38 and later (Level 1 PostScript implementations from the late 1980s, and all Level 2 PostScript implementations):
/EndJobHook { //EndJobHook exec ...more code... } def
You could also write this as
/EndJobHook { ...more code... //EndJobHook exec } def
if you wanted the new hook code to be added before the old hook code. The double slash in //EndJobHook asks for immediate evaluation of the name. This immediately replaces the name by its definition (a procedure) within the new definition of the hook. When the new definition is executed, the exec operator will execute that procedure, effectively inserting the old definition at the beginning of the new one. Without the exec, the procedure would just be left as an unused object on the execution stack. I know of no way to accomplish this without the Version 38 and later // immediate-execution feature.

The facility provided by these options is very powerful, since arbitrary extra PostScript code can be inserted, and PostScript operators can even be redefined.

Sample options:

Disable region fill permanently:
PSCODE='/fill { } def'

Disable region fill only for its first invocation, thereby removing an initial region fill that some PostScript-producing programs always provide:

PSCODE='/oldfill /fill load def
    /fill { /fill /oldfill load def } def'

Supply a copyright claim in the bottom right margin of the BoundingBox:

PSCODE='/EndJobHook { /Helvetica findfont 6 scalefont setfont
    (Copyright, International Widget Corporation (2001) )
    dup stringwidth pop URX exch sub LLY 4 add moveto show } def'

Change all solid lines and dashed lines to dashed lines with a fixed dash pattern:

PSCODE='/BeginDocumentHook { [3] 0 setdash /setdash { pop pop } def } def'

Disable rectangle fill:

PSCODE='/rectfill { pop pop pop pop } def'

Color the page light blue:

PSCODE='gsave 0.7 0.7 1 setrgbcolor 0 0 PageWidth PageHeight rectfill grestore'
These commands are equivalent to COLORMODEL=RGB PAGEBG=0.7,0.7,1.

Set the default foreground color to blue:

PSCODE='0 0 1 setrgbcolor'

Change all colors to shades of gray, assuming that the PostScript file uses only the RGB color model:

PSCODE='/setrgbcolor {add add 3 div setgray} bind def'

Fill the background with a blue color ramp, darker at the bottom, lighter at the top (a popular choice for overhead transparencies and slides):

PSCODE='gsave
    /delta 0.005 def
    0.0 delta 1
    {
       /f exch def
       /g 0.6 dup 1 exch sub f mul add def
       0.9 g mul 0.9 g mul 1 g mul setrgbcolor
       0 PageHeight f mul PageWidth PageHeight delta mul rectfill
    } for
grestore'

Suppress fills 1, 2, 4, and 7:

PSCODE='/BeginDocumentHook {
  /IgnoreFill [ 1 2 4 7 ] def
  /oldfill /fill load def
  /FillCount 1 def
  /fill {
    /DoFill true def
    0 1 IgnoreFill length 1 sub
    {
      IgnoreFill exch get FillCount eq { /DoFill false def } if
    } for
    /FillCount FillCount 1 add def
    DoFill { oldfill } if
  } def
} def'
This example is complex enough that some explanation is in order. The IgnoreFill vector contains a list of fill counts at which filling is to be suppressed. Each time fill is invoked, the for loop iterates over this list, and sets the DoFill flag to false if the current fill count is in the list. At the end of the loop, FillCount is incremented by one, and the original fill command is executed if DoFill is still true. Even without understanding the details, you can easily modify the code by changing the IgnoreFill list entries to select any particular fill operations that you want to suppress. This can be useful for removing unwanted background fills produced by some programs. Given the common use by many programs of inscrutable collections of private PostScript macros, direct modification of the original PostScript code to accomplish the same goal would likely be humanly infeasible.

For more extensive modifications:

PSFILE=mymacros.eps
PSFILE=header1.eps,../tools/monochrome.eps

Rotation

The ROTATE option value is a rotation angle in degrees, positive counterclockwise, and negative clockwise. Only multiples of +/-90 degrees, or values less than 90 degrees in absolute value, are supported. Non-conforming values will elicit a warning and be ignored, preventing any rotation.

For example, to turn landscape orientation with the right side at the top of the page into portrait orientation, specify ROTATE=-90. It will usually be necessary to supply additional scaling (HEIGHT or WIDTH, or SX, SY, or SXY options) to make the picture fit on the output page.

Unless otherwise specified by the translation variables described later, the position of the lower-left corner of the BoundingBox on the output display device is kept invariant, so that after a -90-degree rotation, the lower-right corner of the original BoundingBox will be positioned where the lower-left corner was.

Small rotation angles can be useful for correcting the orientation of slightly-rotated scanned images, since it is often difficult to align precisely an original document on the scanner glass. The output file then contains a comment of the form %%RotatedBoundingBox: 71 363 229 522 giving coordinates of a new BoundingBox that may be suitable for use in a subsequent invocation of epsutil, provided that no further transformations are made. That comment is also printed on stderr.

Sample options:

ROTATE=0
ROTATE=-90
ROTATE=90
ROTATE=180
ROTATE=270
ROTATE=360
ROTATE=450
ROTATE=-2
ROTATE=3.5

Translation of BoundingBox

The origin option variables move the lower-left corner of the BoundingBox to (OX,OY), relative to the lower-left page corner, or if OX and OY are not specified, then to (OXY,OXY). Otherwise, the lower-left corner of the new BoundingBox will be at the same physical page location as one of the corners of the original picture; which one depends on the rotation angle chosen.

Sample options:

OX=0
OY=0
OX=10mm
OY=36bp
OXY=1in
OXY=3pc

Translation of page

The lower-left corner of the page is normally at (0bp,0bp). The page translation variables move that corner to (PTX,PTY), or if that is not specified, then to (PTXY,PTXY).

Use this option to move a figure, and any overlaid grid, away from the page edges where most PostScript printers are incapable of printing.

This option does not affect the BoundingBox coordinates, so it must not be used for production of final EPS files.

Sample options:

PTX=0
PTY=0
PTX=1cm
PTY=36dd
PTXY=1000000sp
PTXY=3cc

Scaling (absolute)

The HEIGHT=height and WIDTH=width options provide a way to request absolute scaling of the BoundingBox to a specified height or width. If only one of them is given, then the other is computed to preserve the aspect ratio for distortion-free scaling. If both are given, then the horizontal and vertical scale factors may be different; the aspect ratio will then not be preserved.

The two sizes refer to the final figure, after any rotation.

If both absolute (HEIGHT and WIDTH) and relative (SX, SY, and SXY) scaling are specified, then absolute scaling is done, and the relative scale factors are ignored.

Sample options:

HEIGHT=400bp
HEIGHT=15cm
WIDTH=340
WIDTH=150mm

Scaling (relative)

The SX, SY, and SXY options provide for relative scaling. Any scale factors provided are applied after the rotation, so that they apply to the final figure. SX and SY are used if provided; otherwise, SXY is used for both x and y scaling if provided.

Sample options:

SX=0.5
SY=2.0
SXY=0.7727

HAND MODIFICATION

The output file can be easily modified by hand later to adjust any of the options that can be set on the command line, even if you are unfamiliar with the PostScript language. Look for the lines following the first %%BeginProlog comment that begin /NAME ... def, and then change the alphanumeric values as needed. Comment lines preceding each set of related variable definitions provide suitable documentation.

BUGS

Until a valid %%BoundingBox comment has been located, or a BOUNDINGBOX command-line option has been supplied, the input PostScript is buffered in memory. On small machines, or with very large PostScript files that contain the %%BoundingBox comment near the end instead of near the beginning, it is possible that your computer memory (and swap space, if any), might be exceeded. The easiest solution for such a problem is to supply a command-line BOUNDINGBOX value. This problem is expected to be exceedingly rare.

Encapsulated PostScript is a subset of standard PostScript that excludes approximately twenty operators whose use can prevent successful inclusion of a PostScript file inside another PostScript file, usually because those operators would obviate the use of a local independently-transformed coordinate system, or would modify the global state of the PostScript environment. When the output file fails to conform to the specified transformations, it is often because of the use of these excluded operators. If requested by the CHECK=1 option, epsutil looks for those operators, and will raise warnings when they are seen. Unfortunately, their apparent absence does not mean that they are not used, because PostScript files can also contain binary, hexadecimal, and other encodings that can hide such operators from view. Thus, the only truly reliable check is visual examination of the output of epsutil with a PostScript previewer or printer, and its successful incorporation in other documents, such as with TeX \epsffile or \special commands, or in word processors.

The ROTATE support needs further generalization to handle arbitrary rotation angles. For now, in some cases, two passes through epsutil may be needed.


ENVIRONMENT VARIABLES

RGBPATH
Search path (a colon-separated list of directories) for the X Window System color definition file, rgb.txt.

FILES

rgb.txt
Color mapping file distributed with the X Window System.

AVAILABILITY

The master source distribution for epsutil is maintained at the Internet archive location ftp://ftp.math.utah.edu/pub/misc/index.html#epsutil-2.01 for both anonymous ftp and World-Wide Web access. The source code is in the public domain, and copies of the program may be freely distributed and used for any purpose.

SEE ALSO

dvialw(1), dvips(1), enscript(1), genscript(1), ghostscript(1), gs(1), lptops(1), pageview(1), plot79(1), postscript(7), psposter(1), tek2ps(1), tekalw(1), transcript(1), x79ps(1), xpsview(1).

AUTHOR

Nelson H. F. Beebe
Center for Scientific Computing
Department of Mathematics
University of Utah
Salt Lake City, UT 84112
USA
Tel: +1 801 581 5254
FAX: +1 801 581 4148
Email: beebe@math.utah.edu
URL: http://www.math.utah.edu/~beebe