display ‰ symbol in xlabel with latex interpreter

13 Ansichten (letzte 30 Tage)
Virgil
Virgil am 27 Jan. 2025
Beantwortet: Star Strider am 27 Jan. 2025
Hi,
I need to display a permil (\textperthousand) in my xlabel but I cannot get it to work.
I'm using the following
ylabel('$\mathrm{^{34/32}\varepsilon^{mic}_{sulfate-pyrite} \ \ (\textperthousand)}$','FontSize',16,'Interpreter','latex')

Antworten (1)

Star Strider
Star Strider am 27 Jan. 2025
I think it’s hanging up on the ‘\textperthousand’ call. When I searched online, that and ‘permille’ are not generally supported (and I can’t find it in my LaTeX reference).
You have to use a work-around —
% ylabel('$\mathrm{^{34/32}\varepsilon^{mic}_{sulfate-pyrite} \ \ (\textperthousand)}$','FontSize',16,'Interpreter','latex')
ylabel('${^{34/32}\varepsilon^{mic}_{sulfate-pyrite} \ \ (^{0}/_{00})}$','FontSize',16,'Interpreter','latex')
The workaround was suggested here. Not the ideal solution, nevertheless it works.
.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by