How can I set default interpreter as LATEX in MATLAB R2017a?

Hello,
set(groot,'defaulttextinterpreter','latex');
set(groot, 'defaultAxesTickLabelInterpreter','latex');
set(groot, 'defaultLegendInterpreter','latex');
I'm using a code of 3 lines above to change the interpreter to latex.
However, when I turned off and restart MATLAB again, the interpreter changed to the original one.
It's weird because I changed the default setting to LATEX. Why does it change from Latex to the original one?
Is there anyway to fix it even after rebooting a computer?
Thank you very much!

 Respuesta aceptada

Steven Lord
Steven Lord el 19 de Jul. de 2017
Put those lines in your startup file.

4 comentarios

Thank you for your advice. I also thought about it, however, I don't think that's a good idea. Because I have search and write those codes every time.
startup files are executed each time you start MATLAB, so you would not need to run the lines yourself.
However, for clarity I would recommend putting those lines in a function or script and including the line at the beginning of your code. When you have functionality hidden in startup files, it makes it difficult for other people to understand your code.
@Walter Roberson, now I understand your recommendations. Thank you all!
How can I add them for a figure and and uitable text?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by