display ‰ symbol in xlabel with latex interpreter

조회 수: 12 (최근 30일)
Virgil
Virgil 2025년 1월 27일
답변: Star Strider 2025년 1월 27일
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')

답변 (1개)

Star Strider
Star Strider 2025년 1월 27일
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.
.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by