Psfig allows the inclusion of compressed PostScript files when using the dvips dvi processor. The shell script pscompress is used to compress figures, and produces two files: filename .bb and filename .Z. The first file contains the bounding box comment only, while the second file contains the actual compressed PostScript file. Usage:
% pscompress filename
When psfig searches for a figure, if it fails to find
filename, it then searches for filename .bb.
If that file exists, it is used for bounding box processing,
and a command to decompress and include the file filename .Z
is issued to dvips.