フィルターのクリア

How to use scandinavian letters in text() when using latex as interpreter?

11 ビュー (過去 30 日間)
Hi there
I need to use the Danish letter "æ, ø and å" in a text() equation. Here's a random example of two versions, where one works and one fails because I am using the Danish letters:
text(.5,.5,'$\textrm{aeoeaa}=\frac{\textrm{ae}^{7}_{oe}}{\textrm{aaaa}_{\textrm{ae}}}$','interpreter','latex');
text(.5,.5,'$\textrm{æøå}=\frac{\textrm{æ}^{7}_{ø}}{\textrm{åå}_{\textrm{æ}}}$','interpreter','latex');
Any idea on how to fix this?
Thanks in advance!
Jakob

採用された回答

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 8 月 17 日
This at least displays the characters in the figure on screen (I've had varying successes printing to file):
text(.25,.25,'$\textrm{\ae\o\aa}=\frac{\textrm{\ae}^{7}_{\o}}{\textrm{\aa}_{\textrm{\ae}}}$',...
'interpreter','latex',...
'fontsize',25);
Good luck.
  2 件のコメント
Jakob Sievers
Jakob Sievers 2021 年 8 月 17 日
Thanks this is exactly what I was looking for!
Bjorn Gustavsson
Bjorn Gustavsson 2021 年 8 月 17 日
My pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by