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

2 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 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.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!