Add Serbian letter to LaTeX interpreted legend

5 visualizaciones (últimos 30 días)
Lazar
Lazar el 14 de Mzo. de 2025
Respondida: Lazar el 14 de Mzo. de 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') ;

Respuesta aceptada

Lazar
Lazar el 14 de Mzo. de 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.

Más respuestas (0)

Categorías

Más información sobre Legend en Help Center y File Exchange.

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by