Xref: utzoo comp.text.tex:6706 comp.sys.mac.misc:10736 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!brahms.udel.edu!anita From: anita@chopin.udel.edu (Anita Marie Hoover) Newsgroups: comp.text.tex,comp.sys.mac.misc Subject: Re: How to calculate BoundingBox? Keywords: Postscript Message-ID: <16899@chopin.udel.edu> Date: 10 Apr 91 15:54:31 GMT References: Followup-To: comp.text.tex Distribution: comp Organization: University of Delaware Lines: 34 In article 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.