Add Serbian letter to LaTeX interpreted legend

조회 수: 4 (최근 30일)
Lazar
Lazar 2025년 3월 14일
답변: Lazar 2025년 3월 14일
Does anyone have an idea how to make "đ" letter appear in a legend with LaTeX interpeter? It's interesting that LaTeX codes for letters like "ć" and "č" work, but "đ" letter doesn't.
leg = legend({'Lokalni mod 1','Lokalni mod 2','Među-zonski mod'},'Location','southwest','Interpeter','latex') ;

채택된 답변

Lazar
Lazar 2025년 3월 14일
I managed to solve this by installing the Latin Modern Roman font in MATLAB following the approach outlined at: https://www.mathworks.com/matlabcentral/answers/514119-can-i-add-custom-fonts-to-my-matlab-desktop-in-preferences
Afterwards, instead of using LaTeX interpreter for the legend, just use TeX interpreter with Latin Modern Roman font.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by