% Janko Slavic (
[email protected])
% 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).
default.tex is the LaTeX template where you can add packages and define your own LaTeX commands.
Copy default.tex and AddTeX2Eps.m to ..\AddOns\StandardPackages\Graphics\ or to search path.
%%%%%%%%%
%%%%%%%%%%%%
% 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}"
}]
%%%%%%%%%%%%