Article View: comp.text.tex
Article #2648psfig, Macintoshes, and Postscript figures
From: David M. Jones
Date: Sat, 12 Sep 1992 22:24
Date: Sat, 12 Sep 1992 22:24
49 lines
2624 bytes
2624 bytes
I'm working on a suite of Perl programs to make it easier to deal with
PostScript files generated on the Macintosh using the LaserPrep header
and, in particular, to make it easier to include them into TeX
documents using psfig. The package consists of the following three
Perl programs and one TeX file:
mkhdr: Perl program which takes a "raw" PostScript file from the
Macintosh and extracts a version of the LaserPrep header that can
be used as an independent header file.
stripps: Perl program which takes a raw PostScript file from the Mac
and cleans it up for use under UNIX and with TeX. The most
important things it does are
1) Replaces the LaserPrep header by a line of the form
%%IncludeHeaderFile: lprep71.pro
which can be used by other printps and epsfig to determine
which header files are needed.
2) Strips out all unnecessary font definitions, meaning all font
definitions for fonts that are resident in your printer. The
list of printer-resident fonts is configurable.
3) Renames the LaserPrep dictionary so that you can mix figures
that use different versions of the LaserPrep procset in a
single TeX document.
printps: Perl program to print one of the PostScript files generated
by stripps.
epsfig.sty (name subject to change): TeX macros to modify psfig to
search the header of a PostScript file for the
"%%IncludeHeaderFile" line and automatically include the specified
header.
The current version works with versions 68 and 71 of the LaserPrep
header, since those are the only versions I have access to. (In
principle, there's no reason why the system can't be expanded to
handle other versions of the LaserPrep header, or even other types of
headers.) I've also only tested it with dvips 5.47.
Before I release it to the world at large, I'd like to get a few beta
testers to try it out. If you'd be interested, please drop me a line.
Cheers,
David M. Jones "Trifles! Trifles light as air!"
dmjones@theory.lcs.mit.edu -- the Hystricide
Technical Details
Message-ID:
<1992Sep12.222403.18100@mintaka.lcs.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!know!hri.com!spool.mu.edu!olivea!mintaka.lcs.mit.edu!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!hri.com!spool.mu.edu!olivea!mintaka.lcs.mit.edu!news From: dmjones@theory.lcs.mit.edu (David M. Jones) Newsgroups: comp.text.tex Subject: psfig, Macintoshes, and Postscript figures Message-ID: <1992Sep12.222403.18100@mintaka.lcs.mit.edu> Date: 12 Sep 92 22:24:03 GMT Sender: news@mintaka.lcs.mit.edu Reply-To: dmjones@theory.lcs.mit.edu (David M. Jones) Organization: Laboratory for Computer Science, MIT Lines: 49