0
$\begingroup$

I am preparing illustrations for a book to be published in Springer Verlag. The latter wants the illustrations to be preferably in the "EPS" format. Several years ago I remember that Mma had problems exporting files to "EPS," and I used "PNG" instead. For years I did not follow this aspect of Mma.

What happens today? Did I miss something important?

To be precise, here is a code for one of my images:

$Version

"14.2.0 for Microsoft Windows (64-bit) (December 26, 2024)"

cM = 72/2.54;
fig = 
 Rasterize[
  Plot3D[-(x/(x^2 + y^2)), {x, -2, 2}, {y, -2, 2}, 
   PlotRange -> {-2, 3}, ColorFunction -> "Pastel", 
   AxesLabel -> {Style["X", 16, Black, Italic, FontFamily -> "Times"],
      Style["Y", 16, Black, Italic, FontFamily -> "Times"], 
     Style["\[Tilde]\!\(\*SubscriptBox[\(\[Epsilon]\), \(\[Alpha]\
\[Alpha]\)]\)", 16, Black, Italic, FontFamily -> "Times"]}, 
   TicksStyle -> Directive[{Black, 12, FontFamily -> "Times"}], 
   ViewPoint -> {2.4201210117080425`, -1.2677347805480974`, 
     1.9964625753762328`}, 
   ViewVertical -> {-0.5226436835596886`, 0.27377704349369275`, 
     0.807396872975746`}, MeshStyle -> Thickness[0.003]], 
  RasterSize -> 800, ImageSize -> {10*cM, Automatic}]

enter image description here

Export[NotebookDirectory[] <> "Fig1p4.eps", fig]

After that, in the corresponding folder I see the following:

enter image description here

That is, the image shows up as an umpty sheet. When I then try to import it into, say, Latex file, Latex does not notice any eps files in the corresponding folder. The same tesult gives also the command:

Export[NotebookDirectory[] <> "Fig1p4.eps", fig,"EPS"]

Is there a workaround?

$\endgroup$
6
  • $\begingroup$ In 14.2.1 on Windows, I can normally export it to the EPS and open it in an editor. However, the image is rasterized ... Including in LaTeX also works. $\endgroup$ Commented May 27 at 10:28
  • $\begingroup$ Is Springer still insisting on the EPS format? On my Mac I cannot even open such files. $\endgroup$ Commented May 27 at 11:39
  • $\begingroup$ @Domen Thank you. I will install 14.2.1 then. $\endgroup$ Commented May 27 at 11:50
  • 1
    $\begingroup$ can try now, but try to export to pdf (this should be vector format ofcourse), then convert the pdf to eps, this should generate vector format eps. There are many tools to convert pdf to eps, and many are free online. Strange that Mathematica generates eps with rasterized format, it should be vector format. $\endgroup$ Commented May 27 at 11:55
  • 1
    $\begingroup$ @Nasser EPS is much more limited than PDF. It does not support transparency, for instance. For 3D I would definitely use TIFF, and reserve EPS for the simplest black and white graphs. $\endgroup$ Commented May 27 at 12:21

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.