Non-italic greek letters (like mu) in Latex interpreter
65 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
dpb
el 26 de Jun. de 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
el 30 de Abr. de 2023
Respuestas (1)
Stefanie Schwarz
el 23 de Abr. de 2025
Editada: Stefanie Schwarz
el 23 de Abr. de 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 comentarios
Ver también
Categorías
Más información sobre Labels and Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!