Can styles be exported in EPS as simple text tags for use by LaTeX's psfrag?

5

1

Is there a way to export graphics as EPS so that LaTeX can perform style substitutions or modifications on them?

I know that it is possible to replace simple text elements in imported EPS files using LaTeX's psfrag; but if this is all that is possible, it is not sufficient to enforce a consistent appearance for graphics. That requires the ability to make substitutions to things like line weights and colors.

Is there a way to use Mathematica to export EPS files in such a way that style elements are represented as simple text tags that can be easily replaced using psfrag (or a similar technique) in LaTeX?

orome

Posted 2012-05-30T14:54:40.890

Reputation: 12 197

1I think it is an interesting question, but the +1 is for the name. – rcollyer – 2012-05-30T14:57:18.477

1

There is a package called mathpsfrag http://wwwth.mpp.mpg.de/members/jgrosse/mathpsfrag/

– Peter Breitfeld – 2012-05-30T14:59:44.760

@PeterBreitfeld: That seems to be old (it complains mightily when installed under 8.0; and many questions related to it here and on TeX.SE are unanswered). It also isn't clear to me how to get it to do what I wold want: simply set up the EPS so that I can perform simple psfrag (or similar) substitutions on the LaTeX (import) end. – orome – 2012-05-30T15:03:55.030

2If you want to do all the final controls with latex, then it might be better to export the points for your curve and import them and plot with tikz – rm -rf – 2012-05-30T15:14:06.677

Yes, that's a good suggestion, and it seems by far the simplest in any scenario where the meat of the figure can be reduced to a function. My question extends to scenarios where this is not the case; e.g., the Mathematica figure is of something like this. Could I, say, make the black squares a specific blue in LaTeX? – orome – 2012-05-31T17:20:01.013

No answers