Add Serbian letter to LaTeX interpreted legend

5 views (last 30 days)
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') ;

Accepted Answer

Lazar
Lazar on 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.

More Answers (0)

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!