Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Generating PDF figures with correct fonts in Mac OS X

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54971] Generating PDF figures with correct fonts in Mac OS X
  • From: gdelfino at gmail.com
  • Date: Tue, 8 Mar 2005 05:04:10 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

As I spent a few hours figuring out how to do this, I will share what I
learned:

g=Plot[Sin[x],{x,0,3}];

Show[
    g,
    DisplayFunction ->
        (Display["!epstopdf -f
-o=/Users/yourlogin/Desktop/filename.pdf",
        #1,
        "EPS", ImageSize -> 12*72]&)
];

epstopdf is an external program. To be able to call it, it must be in
your path. And your path is not really your .profile path. Instead it
is the result of:

Environment["PATH"]

which is

/usr/bin:/bin:/usr/sbin:/sbin:/Users/yourlogin

epstopdf is normally located at

/usr/local/teTeX/bin/powerpc-apple-darwin-current/epstopdf

So you could call it directly, but that wouldn't work because epstopdf
need to call gs and gs is at /usr/local/bin/gs which is not in the
path.

My solution is just to create symbolic links to gs and epstopdf an my
home directory:

cd
ln -s /usr/local/teTeX/bin/powerpc-apple-darwin-current/epstopdf
epstopdf
ln -s /usr/local/bin/gs gs

Now it works beautifully.

Regards,

Gustavo Delfino
Caracs, Venezuela.


  • Prev by Date: Re: Recursion
  • Next by Date: Re: Recursion
  • Previous by thread: Re: Composition of Expansions
  • Next by thread: Mathematica can't calculate Fourier transform (Dirac mean position eigenfunction)