Add Serbian letter to LaTeX interpreted legend

5 ビュー (過去 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 Center および File ExchangeLegend についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by