Combining different font styles while using latex interpretor

Hi, I am preparing some figures for a journal paper. For this I need to combine two different font styles for my axis labels and legends. For the variables, I need math mode, but for the text I need to be out of math mode using the arial font. So how may I go about modofying the below font such that the math mode is retained while the text part reverts to a different font type, e.g. Arial ?
xlabel ('$u_y$, CES', 'Interpreter','latex') =
I want -> CES

 채택된 답변

Walter Roberson
Walter Roberson 2022년 12월 6일

0 개 추천

Unfortunately, MATLAB does not permit including the amsfont package, or any other font package. The only font control you get with MATLAB's latex is things like \textrm

댓글 수: 1

Hi, thank you for clarifying that. None of rm, sf, or tt cut it for me. Python it is!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

질문:

2022년 12월 5일

댓글:

2022년 12월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by