Why are the LaTeX fonts displayed incorrectly in MATLAB 7.0 (R14) on MacOS?

5 visualizzazioni (ultimi 30 giorni)
When I use the command:
text(.5,.5,'$$e^{\pi i} + 1 = 0$$','interpreter', 'latex')
I cannot see the Greek letter "pi" correctly.
Instead I see a "1/4" character.
When I do not specify the "interpreter" option as "latex", the "pi" character appears correctly.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 27 Giu 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0 (R14) when using the LaTeX interpreter on MacOS.
To work around this issue in MATLAB 7.0 (R14) use the MacOS "Font Book" to load the LaTeX Type 1 fonts located in:
$MATLAB/sys/fonts/type1/cm/
where $MATLAB is the MATLAB root directory on your machine.
For MATLAB 7.0.1 (R14SP1) and later versions, you can load the LaTeX Type 1 fonts from the link above, or load the LaTeX ttf fonts located in:
$MATLAB/sys/fonts/ttf/cm/*
After loading the fonts, restart your Mac machine to see the new fonts.
The "Font Book" can be found through the MacOS finder. Consult the MacOS documentation for more information on loading fonts.

Più risposte (0)

Categorie

Scopri di più su Labels and Annotations in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by