Why are the LaTeX fonts displayed incorrectly in MATLAB 7.0 (R14) on MacOS?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
MathWorks Support Team
am 27 Jun. 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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!