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

65 vues (au cours des 30 derniers jours)
P.C.
P.C. le 26 Juin 2021
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 commentaires
dpb
dpb le 26 Juin 2021
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

Connectez-vous pour commenter.

Réponses (1)

Stefanie Schwarz
Stefanie Schwarz le 23 Avr 2025
Modifié(e) : Stefanie Schwarz le 23 Avr 2025
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:

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Tags

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by