Add Serbian letter to LaTeX interpreted legend

5 vues (au cours des 30 derniers jours)
Lazar
Lazar le 14 Mar 2025
Réponse apportée : Lazar le 14 Mar 2025
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') ;

Réponse acceptée

Lazar
Lazar le 14 Mar 2025
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.

Plus de réponses (0)

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by