Non-italic greek letters (like mu) in Latex interpreter
62 ビュー (過去 30 日間)
古いコメントを表示
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
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
Thijs van Stralen
2023 年 4 月 30 日
回答 (1 件)
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:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Labels and Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!