help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Uicontrol static text not interpreted using TEX


From: Pantxo
Subject: Re: Uicontrol static text not interpreted using TEX
Date: Mon, 17 Jun 2019 12:42:53 -0500 (CDT)

funtomas wrote
> I have been searching all over the internet ever since I started with
> writing this GUI (2017 or so) but no luck. It seems as if no one has ever
> ran into this trouble, which seems strange to me. Am I missing something?
> Any help will be very appreciated!
> 
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

Hi,

No, there is no way to do what you want. As you noticed there is no
"interpreter" property (Matlab doesn't have this either) and the text is
thus displayed as is. Depending on the complexity of your GUI layout, you
may be able to fake text-style uicontrol using proper "text" objects,
something like:

# Replace
uicontrol ("parent", p, "style",'text', "string", [char([206 178]) "
Q_v[m^3/s]"], "position", [x0 y0 dx dy]); 

# With
hax = axes ("visible", "off", "position", [0 0 1 1]);
text ("parent", hax, "units", "pixels", "position", [x0 y0 0], ...
       "interpreter", "tex", "string", "\\beta Q_v[m^3/s]", ...
       "backgroundcolor", "w")

Pantxo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]