Next / Previous / Index / TCC Help System / Publications / Site map / NM Tech homepage

Positioning PostScript graphics in Plain TeX

Tech Computer Center logo

If you want to provide your own bounding box (figure size), or if the figure comes from Interleaf (see `Sizing a PostScript figure for use in TeX'), use a call something like this:

        \epsfbox[10 30 150 80]{whatever.eps}
The four numbers in square brackets tell TeX to use only part of the size of the graphic. In this example, TeX would pretend that only the rectangle from (10,30) to (150,80) is actually used. The dimensions are points, so the graphic would have an effective size (for TeX's purposes) of (150-10) or 140 points wide by (80-30) or 50 points tall.

The graphic is not actually cropped to the given size, it is only shifted on the page so that the lower left corner of the bounding box coincides with the lower left corner of the area TeX reserves for it. In the example above, location (10,30) in the figure would be located at the lower left corner of the box in which TeX places the figure, but any part of the image outside the rectangle from (10,30) to (150,80) would still appear on the page.


Next: Previewing TeX files with encapsulated PostScript
See also: Including PostScript images in Plain TeX
Previous: Encoding PostScript graphics in Plain TeX
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 1995/12/19 00:39:07 UT
URL: http://www.nmt.edu/tcc/help/dtp/tex/epsfbound.html