Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6048935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:31:09+00:00 2026-05-23T07:31:09+00:00

I recently updated from mathematica 7.0 to 8.0, and have now encountered problem with

  • 0

I recently updated from mathematica 7.0 to 8.0, and have now encountered problem with replacing my plot labels with LaTeX code using the psfrag package. Everything worked perfectly with the earlier version and the exact same plots, but now psfrag leaves all the labels unchanged. I use Kile on Ubuntu 11.04 for LaTeX editing.

For example, in Mathematica:

plot = Plot[x, {x, -0.1, 0.1}, 
            AxesLabel -> {eps, SUM}, BaseStyle -> {FontSize -> 10}]  
Export["plot.eps", plot]

and then in LaTeX:

\begin{figure}   
\psfrag{eps}{$\epsilon$}  
\psfrag{SUM}{$\Sigma$}  
\includegraphics{plot.eps}  
\end{figure}  

This should now replace labels with LaTeX typesetting, but nothing happens. Any suggestions how to solve this? Does anyone know if there is a difference in how Mathematica 8 encodes text in eps files compared to earlier versions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:31:09+00:00Added an answer on May 23, 2026 at 7:31 am

    There’s no difference in how the EPS is encoded. The problem is that the PS code that makes the text in the v7 output (note that Mma uses bind def to create shortcuts for a lot of PS code, see the top of the generated EPS files for details):

    %%IncludeResource: font Times-Roman-MISO
    %%IncludeFont: Times-Roman-MISO
    10 /Times-Roman-MISO Msf
    0 8 m
    (SUM) N
    

    has been replaced in v8 with

    %%IncludeResource: font Times-Roman-MISO
    %%IncludeFont: Times-Roman-MISO
    10 /Times-Roman-MISO Msf
    p
    0.75 9 m
    (S) N
    P
    p
    6 9 m
    (U) N
    P
    p
    14.25 9 m
    (M) N
    

    This means that psfrag can not grab hold of the tags.
    I can’t find how to fix this in the Mma export options.

    At the moment, the only work-around I can think of (and I’ve tested that works) is to use single letter tags for the axes labels, e.g.

    plot = Plot[x, {x, -0.1, 0.1}, AxesLabel -> {"e", "s"}, 
      BaseStyle -> {FontSize -> 10}]
    Export["plot8.eps", plot]
    
    \begin{figure}[h]
    \psfrag{e}{$\epsilon$}
    \psfrag{s}{$\Sigma$}
    \includegraphics{plot8.eps}
    \end{figure}
    

    Note:

    The reasons for maybe wanting to use psfrag are well stated in http://www.reimeika.ca/marco/prettyplots/

    Now, those tags don’t look too good
    (and make little sense to boot).
    However the idea is to ultimately
    include the plot in a paper or report
    made with LaTeX, and so the real point
    to the tags is to use them as markers
    for the psfrag package which allows to
    replace text within EPS graphs. This
    way of labeling has three big
    advantages over hardcoding the tags
    into the figure. First is consistency,
    as the fonts will be the same as those
    in the article. Second is the fact
    that LaTeX’s mathematical engine can
    be used to the fullest extent within
    the plot. Last but not least, it
    allows changing notation easily within
    the .tex file, as opposed to having to
    recreate the plot from scratch.


    Addendum:

    The package psfrag only works with EPS graphics and thus only with latex.
    If you want to use psfrag and pdflatex, then see the tex.SE question
    Using psfrag with pdflatex

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently updated my Internet Explorer version from 8 to 9. Now, I'm getting
Recently, I have updated from MongoDB 1.6 to MongoDB 2.0. I have populated several
I have a bunch of URLs from an old site that I recently updated
I have recently updated the GWT SDK from 1.5.3 to 2.0.0 on a project.
I have recently updated jQuery from 1.6 to 1.7 and the following has stopped
I've recently updated from hibernate 3.3.1.GA to hibernate 3.5.0 and I'm having a lot
I recently updated an application from VS2003 to VS2008 and I knew I would
I've recently updated an application to the 3.5 framework (from 2.0). The app links
I recently updated to the new version of XCode and the session start code
I recently updated my Eclipse (now running 20100218-1602), and I've found whenever I click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.