Non-italic greek letters (like mu) in Latex interpreter

조회 수: 65 (최근 30일)
P.C.
P.C. 2021년 6월 26일
편집: Stefanie Schwarz 2025년 4월 23일
Hi,
is there any way to get an upright mu with the latex interpreter? What I am trying to do is
s1=sprintf('$(x,y)=(%1.1f,%1.1f) \\mu m, \\ \\bar{Z}=%d=%1.2f$', X,Y,Z,)
which I am using in a text() command for a plot and it gives an italic µ. The only solution I saw was using the tex interpreter instead, but I want the rest of the text to be in the Latex interpreter so that I can use the \bar command, so I do not think that would not work for me.
  댓글 수: 3
dpb
dpb 2021년 6월 26일
Another instance in which LaTeX seems more trouble than it can possibly be worth...at least that's a viewpoint from one who no longer has to meet external publishing requirements for papers, dissertations, and the like... :)
I did find one creative individual posted a non-trivial and not terribly satisficatory workaround at https://www.mathworks.com/matlabcentral/answers/160673-greek-symbols-esp-not-italic?s_tid=answers_rc1-1_p1_MLT#answer_732540

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

답변 (1개)

Stefanie Schwarz
Stefanie Schwarz 2025년 4월 23일
편집: Stefanie Schwarz 2025년 4월 23일
Unfortunately, MATLAB's current LaTeX interpreters do not support upright Greek letters. Due to frequent requests for a non-italized \mu, we are currently considering adding \upmu support in a future MATLAB release. While our rendering infrastructure doesn't allow adding full LaTeX packages like upgreek, we are exploring the possibility of implementing individual commands. So as Stephen mentioned, readers are encouraged to contact MathWorks Technical Support to express their interest in support for specific non-italicized Greek letters.
You can consider the workarounds for the TeX interpreter that have been discussed on MATLAB Answers:

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by