Latex interpreter with sentences and symbols

396 ビュー (過去 30 日間)
Aparicio Nieto
Aparicio Nieto 2017 年 7 月 24 日
コメント済み: Aparicio Nieto 2017 年 7 月 25 日
I use latex interpreter when add labels to my plots and no problem appears when I write whole sentences without symbols or only symbols; however, when I try to combine them, there is no error, but neither does it work. Does anyone have any idea of how it could be fixed? I tried typing $$ instead of just $, but still that way. Thank you in advance.
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 7 月 24 日
Could you give a brief example?
Aparicio Nieto
Aparicio Nieto 2017 年 7 月 24 日
Yes, when I try Matlab to write the title with the Latex font, I do not now why, but it does not work; however, the axis labels are correctly intrepeted and the command works perfectly. I am afraid it is related to the use of sentences and symbols simultaneously, just as I did in the title, so I am wondering if there is a way to 'tell' Matlab what I want.
title('$Ratio Energético \Gamma$','fontsize',14,'interpreter','latex')
xlabel('$f/f_{ref}$','fontsize',14,'interpreter','latex')
ylabel('$\Gamma$','fontsize',14,'interpreter','latex')
Thanks you very much.

サインインしてコメントする。

採用された回答

Robert U
Robert U 2017 年 7 月 25 日
Hi Aparicio Nieto,
as I see the latex interpreter cannot interpret your title command. The "$"-signs indicate a math-environment where you could write formulas. Plain text can be written as is:
figure;
axes
title('Ratio Energ\''etico $\Gamma$','fontsize',14,'interpreter','latex')
xlabel('$f/f_{ref}$','fontsize',14,'interpreter','latex')
ylabel('$\Gamma$','fontsize',14,'interpreter','latex')
Kind regards,
Robert Uhlig
  1 件のコメント
Aparicio Nieto
Aparicio Nieto 2017 年 7 月 25 日
I will try it as soon as possible, thank you very much

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by