Clear Filters
Clear Filters

getting warning message about Latex

8 views (last 30 days)
bora on 12 Dec 2023
Answered: arushi on 27 Dec 2023
I am a MATLAB R2023a user
At line 232 of my code which is,
I am getting the warning message below. What should I do to debug my code?
(line 232)
Warning: Symbol font is no longer supported. To display special characters, use TeX or LaTeX markup with the
Text Interpreter property set to TeX or LaTeX.
Cris LaPierre
Cris LaPierre on 13 Dec 2023
Is there somewhere else in your code that you set the fontname? See this blog for how someone else fixed the error:
Walter Roberson
Walter Roberson on 13 Dec 2023
Is there somewhere else in your code that you set the fontname?
In particular,
ans = 'Helvetica'

Sign in to comment.

Answers (1)

arushi on 27 Dec 2023
Hi Bora,
I understand that you are getting the warning message at line 232 which is
However,this works fine on my R2023a version without any warning errors.
The warning message you received indicates that MATLAB no longer supports the Symbol font, which was previously used to display special characters. Instead, MATLAB now recommends using TeX or LaTeX markup for special characters, along with setting the Text Interpreter property to 'TeX' or 'LaTeX'.
In your code, you are already using LaTeX markup and setting the Interpreter property to 'latex', which is the correct approach. However, you are still getting a warning, which suggests that there might be an issue elsewhere in your code where special characters are being used without the appropriate Interpreter setting.
To ensure that LaTeX is used consistently for all text elements that require it, you should check your entire code for any other instances where text is being set (e.g., title, ylabel, text, legend, etc.) and make sure that the Interpreter property is set to 'latex' for those as well.
Hope this helps.
Thank you





Community Treasure Hunt

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

Start Hunting!