display ‰ symbol in xlabel with latex interpreter

13 vues (au cours des 30 derniers jours)
Virgil
Virgil le 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')

Réponses (1)

Star Strider
Star Strider le 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.
.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by