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

조회 수: 4 (최근 30일)
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.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
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개)

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by