Problem with latex interpreter
10 views (last 30 days)
Show older comments
I use latex interpreter when add labels to my plots. For example,
ylabel('$\varphi(x)$');
I would like to use cyrillic letters in my labels, but when I write
ylabel('$\varphi(x)$, абв')
I get latex interpreter error:
Warning: Error updating Text.
String must have valid interpreter syntax:
$\varphi(x)$, абв
Please, help to solve this problem
0 Comments
Answers (1)
Walter Roberson
on 9 May 2016
As best I recall, basic latex does not support characters outside the range 0 to 255. There are libraries that can be added to get unicode characters, but it is not obvious how to add them to MATLAB; see http://www.mathworks.com/matlabcentral/answers/232589-how-to-add-latex-packages-for-the-latex-interpreter-how-to-print-the-euro-symbol-with-the-latex-in
2 Comments
Walter Roberson
on 9 May 2016
If you follow the links in my Answer there you would reach http://www.mathworks.com/matlabcentral/answers/232055-is-there-a-hook-that-will-allow-me-to-change-the-document-style-and-or-add-packages-to-the-latex-fil#answer_187995 which has information about adding new latex packages.
I do not know anything about matlabfrag .
I have never tried to include MATLAB graphics in latex.
See Also
Categories
Find more on Desktop 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!