Non-italic greek letters (like mu) in Latex interpreter
65 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
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
Thijs van Stralen
le 30 Avr 2023
Réponses (1)
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:
0 commentaires
Voir également
Catégories
En savoir plus sur Labels and Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!