【问题标题】:Greek letters in uimenu labeluimenu 标签中的希腊字母
【发布时间】:2017-07-22 08:17:37
【问题描述】:

我正在尝试拥有一个uimenu,其'Label' 包含并显示罗马和希腊字母。

我试过了:

uimenu(h,'Label','test with σ')                   % displays 'test with ?'
uimenu(h,'Label','test with \sigma')              % displays 'test with \sigma'
uimenu(h,'Label',['test with' char(963)])         % displays 'test with'
uimenu(h,'Label','<html>test with σ</html>')      % displays 'test with ?'
uimenu(h,'Label','<html>test with \sigma</html>') % displays 'test with \sigma'
uimenu(h,'Label','<html>test with &#0963</html>') % displays 'test with ?', but it works
%                                                   with other uicontrols like popupmenus
uimenu(h,'Label','<html>test with <font face="Symbol">s</font></html>') 
% ^ displays 'test with s', s being with a different font, but not the Symbol one

知道如何实现这一点吗?我在 R2014a 上。

请注意,“μ”(在我的键盘上可用,我只是用来输入这个确切的那个)有效,但“μ”不起作用(就像在 Unicode 03BC 中,我只是用来输入这个确切的那个)。

【问题讨论】:

  • 第一个工作在R2016b
  • 好点。我刚刚添加了一条评论说我在 R2014a 之下。
  • 尝试使用 (la)tex 解释器。
  • @M_Tornack uimenus 没有解释器设置/选项。这就是整个问题。

标签: matlab special-characters matlab-figure menubar matlab-gui


【解决方案1】:

这个适用于 R2015b

uimenu(h,'Label',['test with ', char(963)])

【讨论】:

    猜你喜欢
    • 2015-08-10
    • 2014-02-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-15
    • 1970-01-01
    • 2021-07-16
    • 2021-07-02
    • 2013-01-28
    相关资源
    最近更新 更多