[comp.text.tex] How to calculate BoundingBox?

jesse@cs.UAlberta.CA (Jesse Lee) (04/10/91)

I need to include some Mactintosh Postscript files into a LaTeX
file. Those Postscript files are generated under LaserPrep 5.2.
I would like to use the psfig macro to include these PostScript
files. However those Postscript files do not contain any BoundingBox
information which is needed by psfig macro. 

Is there any program which can calculate the BoundingBox for me?
If so, where can I get it?

For Macintosh Postscript file generated under LaserPrep 5.2,
do I need to include some special header?
						Jesse Lee

anita@chopin.udel.edu (Anita Marie Hoover) (04/10/91)

In article <jesse.671262709@menaik> jesse@cs.UAlberta.CA (Jesse Lee) writes:
=>I need to include some Mactintosh Postscript files into a LaTeX
=>file. Those Postscript files are generated under LaserPrep 5.2.
=>I would like to use the psfig macro to include these PostScript
=>files. However those Postscript files do not contain any BoundingBox
=>information which is needed by psfig macro. 
=>
=>Is there any program which can calculate the BoundingBox for me?
=>If so, where can I get it?

Exerpt from dvips (Tom Rokick's driver) document:

	If the document lacks a bounding box altogether, one can be easily
added.  Simply print the file.  Now, take a rule and make the following
measurements.  All measurements should be in PostScript units, so
measure it in inches and multiply by 72.

	From the left edge of the paper to the leftmost mark on the paper
is "llx", the first numberst.  From the bottom edge of the paper to the
bottommost mark on the paper is "lly", the second number.  From the left
edge of the paper to the rightmost mark on the paper is "urx", the third
number.  The fourth and final number, "ury", is the distance form the
bottom of the page to the uppermost mark on the paper.

=>
=>For Macintosh Postscript file generated under LaserPrep 5.2,
=>do I need to include some special header?

I know that there is a program called macps (for unix) which makes an
encapsulated postscript file for a mac postscript file. I don't know if
this works for all cases. It contains LaserPrep6.0 and LaserPrep5.2
files.  I don't know where this originally came from but you can get
the compressed unix tar file (MACPS.tar.Z) anonymous ftp from
zebra.acs.udel.edu in the pub directory.

bryan@cs.utexas.edu (Bryan Bayerdorffer @ Wit's End) (04/11/91)

In article <jesse.671262709@menaik> jesse@cs.UAlberta.CA (Jesse Lee) writes:
=-I need to include some Mactintosh Postscript files into a LaTeX
=-file. Those Postscript files are generated under LaserPrep 5.2.
=-I would like to use the psfig macro to include these PostScript
=-files. However those Postscript files do not contain any BoundingBox
=-information which is needed by psfig macro. 
=-
=-Is there any program which can calculate the BoundingBox for me?
=-If so, where can I get it?
=-
	Send a mail message to the address ps-file-server@adobe.com containing
the line `send Programs epsfinfo.ps'.  Pretty soon you'll receive a clever
little hack that generates BoundingBox and DocumentFonts comments for each page
of a given PostScript file.  Include these comments in your PostScript files and
away you go.  If your files conform sufficiently to the EPSF format, that is.