Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!mit-amt!trevor From: trevor@mit-amt (Trevor Darrell) Newsgroups: comp.lang.postscript Subject: psfig - postscript and Mac figures in troff/TeX Message-ID: <3671@mit-amt> Date: 28 Mar 89 19:45:17 GMT Reply-To: trevor@media-lab.media.mit.edu.UUCP (Trevor Darrell) Organization: MIT Media Lab, Cambridge MA Lines: 33 Seeing the recent revival of interest in comp.lang.postscript on including postscript figures in TeX and troff, I thought I'd post an update on the availablility of psfig. Psfig is a preprocessor for troff and a set of macros for TeX that handles the inclusion of postscript figures; in short it scans the %%BoundingBox comment of a postscipt file to find the figure size, creates a nested postscript environment with the appropriate scaling and translattion needed to image the figure at the desired place, and then includes the figures's PostScript text using special commands to the postprocessor. The final document *must* be printed on a PostScript device; the following postprocessors are known to work with psfig: psdit (from adobe), dvips (from arbortext), and a version of dvi2ps hacked by Tony Li at USC. You can grab the sources to psfig from linc.cis.upenn.edu using anonymous ftp from the directory ~ftp/dist/psfig/. tex.tar.Z has the TeX version, troff.tar.Z the troff version, and dvi2ps.tar.Z a copy fo Tony Li's dvi2ps. ** Also there is a file lprep68.tar that has a hacked up copy of the Apple Laserprep version 68 that works with psfig. Use at your own risk :-) ** Psfig was written several years ago by Ned Batchelder and myself when we were back at U. Penn; previous versions have been posted to comp.sources.unix and should be available from the standard archive sites if anon ftp is not available. There is a paper on the internals of the troff versions in the Phoenix Usenix proceedings. --trevor