[comp.lang.postscript] Figure Insertion Software Available

shr@a.gp.cs.cmu.edu (Scott H. Robinson) (03/19/89)

Recently there have been several questions regarding the insertion of
PostScript figures in documents produced by LaTeX, Troff, and the like.  Of
course, many of the specifics depend on the text processing system you have,
but other aspects remain similar.  As a result of these questions, I've
decided to make a set of shell scripts available which help automate the
insertion of PostScript figures in LaTeX documents. I hadn't made them
available before because the scripts and associated documentation are not
completely polished. But, I believe that they should serve many with few
modifications and may provide an useful starting point for others with
different text processing systems.  Other LaTeX users in my department have
been using the package to include a variety of PostScript files, and the
technique seems to be quite clean and general.

There are two basic shell scripts. One takes non-conforming PostScript files
and tries to make them conform ``enough''.  The transformations required to
make a file conform ``enough'' are quite specific, so I tried to provide a
succinct method for describing such transformations. In particular, one
transformation description file exists for each non-conforming PostScript
file type and they are ``compiled'' into the final shell scripts and
documentation. 

The second script prepares the resulting file for inclusion into LaTeX
documents by prepending and appending various dvi->ps filter directives and
PostScript commands.  The user can supply an ``adjustment'' file that
permits translation, scaling, and rotation of the corresponding figure.

Retrieval directions are included below.
							shr

Scott H. Robinson	 		ECE Department
(412) 268-6639				Carnegie Mellon University
ARPANET: shr@maxwell.ece.cmu.edu	Pittsburgh, PA. 15213   U.S.A.
UUCP: {...decvax}!vax135!ucbvax!shr@maxwell.ece.cmu.edu

=====ftp directions=====
The file psprep.tar.Z (Prepare PostScript figures for insertion in LaTeX
documents) is available for anonymous ftp.  Be sure to set the file transfer
type to binary.  The session will look something like (where what you type
is delimited by '<' and '>'):

	% <ftp a.gp.cs.cmu.edu>
	ftp: user: <anonymous>
	ftp: passwd: <anonymous>
	ftp: <binary>			#set file transfer type to ``binary''
	ftp: <cd /usr/shr/ftp>
	ftp: <get psprep.tar.Z>
	ftp: <bye>

The directory /usr/shr/ftp/psprep is also available for snarfing individual
files. You may wish to get the manual entries first before getting
everything. They are:
	/usr/shr/ftp/psprep/man/{figprep,psconform,psprep}.1
	/usr/shr/ftp/psprep/man/pscon.5

Then to unpack the file:
	zcat psprep.tar.Z | tar xf -

This will create the subdirectory ``psprep'' in the current working
directory.  You'll need about 4.5 Meg to hold it all - *much* of this can be
removed later if desired (most of it consists of PostScript files that make
up the test cases and documentation.)

Then read DISTNOTES, NOTICE, and README before doing anything else.
--