summaryrefslogtreecommitdiff
path: root/graphics/AddTeX2Eps/readme.txt
blob: 549f60f5328ee753ed8a57fb577f4b978731ef4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% 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).

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}"
   }]
%%%%%%%%%%%%