MSRI Graphics School - Lecture 4 on PostScript

Automating labels

Producing labels for PostScript figures involves some complicated steps. Some do in fact require some necessary work, but some can be automated. I have written two small programs that do the most tedious part.

  • psinc This reads in a PostScript file that runs files, and replaces the run commands by outputting a file with the appropriate files explicitly included. This output is therefore a completely self-contained PostScript file.
  • pslabels This is a key part of the process leading from a TEX file to a PostScript file suitable for simple inclusion in another PostScript file. It reads the bounding box of the .eps file output by dvips and performs the translation necessary to shift its lower corner to the origin.
These programs are not used manually, but incorporated in a process triggered by the UNIX utility make PS in 3D

I have written a suite of procedures that extend PostScript drawing to three dimensions. In 3D a lot of new problems arise.