set latters in a string to different fontsizes with interpreter latex
이전 댓글 표시
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
Jan
2013년 6월 17일
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
2013년 6월 17일
Do you get something like what you want when you use 'tex' not 'latex' as the interpreter?
Daniel Shub
2013년 6월 17일
@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
2013년 6월 17일
@Daniel - I have and it appears to work, besides the $ signs appearing as part of the text.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!