🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6788

Re: Psfig -- figuring out the boundingbox of Mac postscript file

#6788
From: Alain Merigot
Date: Sun, 04 Feb 1990 21:26
20 lines
1209 bytes
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
Technical Details
Message-ID: <1629@geocub.greco-prog.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!inria!geocub!ief
References: <13907@cs.yale.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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