% Janko Slavic (janko.slavic@fs.uni-lj.si) % 2006, version 1.1 %%%%%%%%% % Installation: % Be sure to have installed psfrag package: http://www.ctan.org/tex-archive/macros/latex/contrib/psfrag/ (If using MikTeX go to MikTeX options/packages and install psfrag). In the Mathematica folder ..\AddOns\Packages\ create a subfolder named EpsTools. To the subfolder add this files: default.tex - the LaTeX template where you can add packages and define your own LaTeX commands. AddTeX2Eps.m - the package Run AddTeX2Eps-Example.nb %%%%%%%%% %%%%%%%%%%%% % Example of usage: % Needs["Graphics`AddTeX2Eps`"]; Options[EpsExport] CorrectBB::usage fig = Plot[Sin[x^2], {x, 0, 4}, AxesLabel -> {"a","b"},PlotLabel -> "c"]; EpsExport["d:/test.eps",fig,{ "\\psfrag{a}[c]{$x$}", "\\psfrag{b}[c]{$\\sin(x^2)$}", "\\psfrag{c}[c]{Native \\LaTeX via psfrag package}" }] %%%%%%%%%%%%