set latters in a string to different fontsizes with interpreter latex
Ältere Kommentare anzeigen
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 Kommentare
Jan
am 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
am 17 Jun. 2013
Do you get something like what you want when you use 'tex' not 'latex' as the interpreter?
Daniel Shub
am 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
am 17 Jun. 2013
@Daniel - I have and it appears to work, besides the $ signs appearing as part of the text.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!