The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Topic: Re: [mg4172] Mathematica graphics into TeX
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Timo Felbinger

Posts: 1
Registered: 12/11/04
Re: [mg4172] Mathematica graphics into TeX
Posted: Jun 16, 1996 2:08 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In article <4p8gfp$>, Alan Schwartz
<> wrote:

> Is there a simple way to incorporate graphics generated by
> Mathematica into a TeX document (specifically AmsLatex 2e).
> I suspect that this involves somehow generating an appropriate
> Postscript file, but I cannot find out from the Mathematica
> book how to do this.

I assume that you already know how to include PS or EPS-files into

Depending on the system you are working on, you could of course go
through the print menu and print to a PS-file, or use the clipboard
in some way, but I would not recommend this: It's painful, because it
requires lots of mouseclicks every time you change the graphics, and
the quality of the PS-file created this way is variable at best,
depending on your printer driver (under windows, you typically end up
with about a megabyte of garbage).

A much more clever solution is to use the DISPLAY-function (this function
and the very useful job it performs is well hidden in Wolfram's book).
DISPLAY produces a file which is not yet a correct PS-file; it has to be
fixed by a program called 'psfix'. All this can be done from within mathematica;
I am running mma under Linux and use the following function, which produces
a good-quality EPS-file from any graphics object:

CreateEPS[ filename_, graphics_ ] := (
StringJoin[ filename, ".mps"],
"psfix -epsf ",
StringJoin[ filename, ".mps" ],
StringJoin[ ">", filename, ".eps" ]

Unfortunately, psfix does not seem to be included in all distributions of mma.
It comes with the Linux version; there, it is a plain shell script which will
run on any unix system.

I do not know of any equivalent to psfix on other platforms than unix; does anyone
know of a similar program which can be run under windows?

Timo Felbinger (

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.