Martin Kaufmann
2006-01-16 03:26:32 UTC
Hi!
I'm using the LaTeX interpreter to have access to special math symbols
(e.g. \sqrt) in my labels. Since for all the other text Helvetica is
used, I'd like to use that font for the LaTeX text as well. Does anyone
know if that's possible? The following line uses Computer Modern Sans
Serif (cmss) on my system (I attached a complete example at the
bottom):
xlabel('\textsf{This is my label}', 'Interpreter', 'latex');
I also tried something like
xlabel('{\fontfamily{phv}\selectfont This is my label}', 'Interpreter',
'latex');
which didn't work.
Any ideas?
BTW, is there a list of supported LaTeX commands?
Thanks for your help!
Cheers,
Martin
------- example.m ----
x=0:0.1:3;
y=x.^2;
plot(x,y);
xlabel('\textsf{This is my x-label}', 'Interpreter', 'latex');
ylabel('This is my y-label');
text(1.15,0.3,'This is more text');
I'm using the LaTeX interpreter to have access to special math symbols
(e.g. \sqrt) in my labels. Since for all the other text Helvetica is
used, I'd like to use that font for the LaTeX text as well. Does anyone
know if that's possible? The following line uses Computer Modern Sans
Serif (cmss) on my system (I attached a complete example at the
bottom):
xlabel('\textsf{This is my label}', 'Interpreter', 'latex');
I also tried something like
xlabel('{\fontfamily{phv}\selectfont This is my label}', 'Interpreter',
'latex');
which didn't work.
Any ideas?
BTW, is there a list of supported LaTeX commands?
Thanks for your help!
Cheers,
Martin
------- example.m ----
x=0:0.1:3;
y=x.^2;
plot(x,y);
xlabel('\textsf{This is my x-label}', 'Interpreter', 'latex');
ylabel('This is my y-label');
text(1.15,0.3,'This is more text');