Department of Physics and Astronomy - Computer Facilities
Unix Environment for Physics - Programs

Problems with Postscript from other Programs

The Mathematica User's Guide admits it right out:
"Like most programs that generate graphics in the form of PostScript page descriptions, Mathematica dos not actually generate standard PostScript."
Other folk are not even honest about it.

Mathematica & Postscript

A file saved from a graphics window in Mathematica, say plot.mps, is in postscript but missing a prolog. You can print it or convert it to real PostScript with
psfix plot.mps |lpr
or
psfix plot.mps > plot.ps

But, this is not the whole story. Even PostScript file corrected in this fashion might fail to print out properly or be seen properly by some other application (say Ghostview). Mathematica specific fonts are the reason. Some special caracters, symbols and Greek letters might be replaced with plain type. This problem might be resolved in the future in some more pleasing fashion, but for now there are two temporary "fixes".
One is good if you suspect that you will be bringing file to be printed somewhere where you are not sure that the proper fonts are available. Trick is to embed needed fonts into PostScript files. You will need to download free and undocumented Mathematica routine
emmathfnt , follow instructions to install it, add path to it to your own path file and than use it in a same manner as psfix. Some printers might still have trouble with it (example 3t!) but at least other applications will understand it properly.
Other "fix" is even more non-standard, but it will provide you with certain success. PostScript file containing special characters, symbols and Greek letters from Mathematica (fixed by psfix) should be converted to PDF format using distill program (currently available on graviton machine). Resulting PDF file, than, may be converted back to PostScript using pdf2ps program (currently available on all machines). "Magically", all printers and applications now treat all printed characters properly...

More information on printing in Mathematica is in
/doc/physics/symbolmath/mathematica/graphics.*


Richard Vaughn
. Last modified: Wed Mar 29 10:52:22 EDT 2006