Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!inria!geocub!ief From: ief@geocub.greco-prog.fr (Alain Merigot) Newsgroups: comp.text Subject: Re: Psfig -- figuring out the boundingbox of Mac postscript file Message-ID: <1629@geocub.greco-prog.fr> Date: 4 Feb 90 21:26:54 GMT References: <13907@cs.yale.edu> Reply-To: am%iefups@inria.inria.fr Organization: Universite Paris Sud Lines: 20 Here is the hack I use to include macdraw figures with psfig. I draw ON THE FIGURE a bounding box. Then, I save the figure in postscript (with clover-F). After, I use a (trivial) perl program that will 1) search the largest rectangle in the ps file. 2) write the coordinate of that rectangle as the figure bounding box, and kill the corresponding line. It *is* a hack, but it works perfectly well. Adding the bounding box when drawing the figure is not a real pain. There is another manipulation to do in the header. If you are interested, I can send you details (and the code). A. Merigot Institut d'Electronique Fondamentale Universite Paris Sud 91405 Orsay Cedex France ...uunet!mcvax!inria!iefups!am am%iefups.uucp@lri.lri.fr