Greek symbols (esp. µ) not italic
295 views (last 30 days)
Show older comments
I want to use the greek "mu" to be displayed non-italic. Example: ylabel('c [\mu mol/l]')
Is there any easy solution to this problem?
0 Comments
Answers (4)
Kenneth
on 9 Feb 2017
Simply copy past the mu "µ" in your text like >> ylabel('c [µmol/l]') works perfectly fine in Matlab 2016a
Sean de Wolski
on 30 Oct 2014
Use the 'tex' interpreter instead of the latex one:
>> xlabel(['c_{O2} [',char(181),'mol/l]'],'Interpreter','tex');
Mattias Flygare
on 24 Jun 2021
Comments that suggest using unicode mu and tex interpreter do not always offer a good solution. For many reasons, one might have to use latex interpreter, and a solution for upright mu within the latex interpreter is still needed, as the unicode mu is not supported there.
My workaround was to use the latex interpreter to set the text, but with a space instead of the mu, and then insert the mu with tex interpreter "manually" where the space is. Needless to say this solution is not ideal...
2 Comments
Jérôme
on 26 Jul 2022
Could you please detail how you "insert the mu with tex interpreter "manually" where the space is" after having inserted the text with the latex interpreter?
Thanks
Mattias Flygare
on 27 Jul 2022
I believe I used the text command together with the tex interpreter and then trial and error to find the correct x and y coordinates to place the mu in the space I previously left for it. Hope it helps!
Star Strider
on 30 Oct 2014
See if replacing ‘\mu’ with char(181) does what you want. (This applies to US-ASCII character maps. If you have a different one, you may have to search for it.)
2 Comments
Star Strider
on 30 Oct 2014
I haven’t used LaTeX in years, so I had to go searching. It seems that according to the latest documentation, in LaTeX, \mu also produces an italicised symbol.
My suggestion: Go with Tex and char(181).
See Also
Categories
Find more on Labels and Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!