Help w/Mathematica/Postscript/LaTeX

Quote:

>> I'm having trouble including Mathematica Postscript output in my{*filter*}

>> files. Printing selections in Mathematica produces output that takes up

>> a whole page. The figures show up in Latex, but they're a bear to scale

>> and place so that they don't interfere with anything else. The program

>> psfix doesn't seem to do much of anything, nor does changing the

>> BoundingBox in the ps file (though I really have no clue about postscript.)

>> Any ideas? Thanks in advance,

>I never had any problems using Mathematica postscript files. Here is

>what I normally do:

>\begin{document}

>\input psfig

>\begin{figure}

> \centerline{\psfig{figure=fig3.ps,height=90mm,rheight=75mm}}

>\end{figure}

>\end{document}

>Here I am using a package psfig to include the figure. Another

>possibility is to use epsf, that also works.

In order to use either psfig or epsf TeX macros, you need to create an

encapsulated postscript file (with a bounding box). Here is how I do

that from within mathematica under UNIX. The procedure might be

somewhat different if you are running a mathematica front end.

1. First create the graphic. Say it is Output[20]

2. Execute the mathematica command: Display["graph.ps",%20]. Here

"graph.ps" is whatever file name you want to give to the file.

3. At the UNIX prompt, execute: psfix -epsf graph.ps >graph.eps

You can add other psfix options if you wish.

4. Now you can follow the above procedure for psfix from within your TeX

document. (Using graph.eps instead of fig3.ps, of course.)

cliff bergman

--

Cliff Bergman