Change Font in Latex Interpreter
67 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I stumbled across a problem using the latex interpreter. I like to work with TeX Gyre Pagella in LaTeX documents and thererfore it would be nice if my ticks and labels in the plots also had these fonts.
As soon as I use the latex interpreter, the font is however set to the default LaTeX font computer modern. What I did up to now was using no interpreter at all, saving the plot as an svg file and the convert it with inkscape to a tex file, for which the font was updated.
Is there a possibility to do this with the latex interpreter directly?
Thank you very much!
0 个评论
回答(2 个)
Walter Roberson
2021-1-31
Not supported for current versions of MATLAB.
Note: you might be able to do it with Report Generator.
Also, there just might happen to be a way to hack it if you are using uifigures; I have seen passing reference to some customization hooks that perhaps might happen to give a way to load a latex package.
Sai Sri Pathuri
2020-7-9
You may use 'TickLabelInterpreter' property of axes object. Refer the following answer.
1 个评论
Ben Bitdiddle
2021-1-30
Does not address the question of setting the font. See the title of the question "Change Font in Latex Interpreter."
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!