set latters in a string to different fontsizes with interpreter latex
Show older comments
I want to set latters in a string to different fontsizes with interpreter latex, but the following commond doesn't work. Why?
text('position',[0.8 0.9 0],'interpreter','latex',...
'string','$\fontsize{12}{xxx}\fontsize{8}{yyyy}$',...
'fontname','Times New Roman');
Thanks!
4 Comments
Jan
on 17 Jun 2013
What does "does not work" exactly mean? Please do not let us guess this important detail. What do you see instead of your expectations?
Tom
on 17 Jun 2013
Do you get something like what you want when you use 'tex' not 'latex' as the interpreter?
Daniel Shub
on 17 Jun 2013
@Tom, have you tried it using TeX and not LaTeX. What makes you think that using LaTeX macros (|\fontsize|) would work with the TeX interpreter?
Tom
on 17 Jun 2013
@Daniel - I have and it appears to work, besides the $ signs appearing as part of the text.
Accepted Answer
More Answers (0)
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!