Re: embedded formatting hell: x-bar meaning "mean of x" [message #54042] |
Thu, 17 May 2007 16:05 |
MarioIncandenza
Messages: 231 Registered: February 2005
|
Senior Member |
|
|
> erase
> xyouts,.5,.5,/FONT,/NORMAL, $
> string(42,FORMAT='("!sx!r!U!M!Z(be)!x!n= ",I0," is the mean")'),CHARSIZE=3
Thanks, that is pretty good. I expect I will probably head straight to
this thread next time I need this, rather than trying to find it in my
own code!
--Edward H.
|
|
|
Re: embedded formatting hell: x-bar meaning "mean of x" [message #54048 is a reply to message #54042] |
Thu, 17 May 2007 12:23  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Thu, 17 May 2007 11:05:40 -0700, Ed Hyer wrote:
> ideally, something I can use in STRING() to then deliver as input to
> XYOUTS.
>
> This comes close:
>
> meanstring=STRING(mean,$
> format='("!sx!r!u-!n= ",i," is the mean")')
>
> I think it would be correct, if I could just get an em-dash instead of
> an en-dash.
>
> Unicode should be my friend here, but I can't get syntax:
>
> format='("!sx!r!u!Z('2014'x)!n= ",i," is the mean")')
No need for the ''x format, it understands the input as hexadecimal.
Best I could do:
erase
xyouts,.5,.5,/FONT,/NORMAL,$
string(42,FORMAT='("!Sx!R!A!Z(2013)!n=",I0," is the mean")'),CHARSIZE=3
The symbol font also has a nice long dash down low (still easier for
me to use the Z() notation for these). It's a little better centered:
erase
xyouts,.5,.5,/FONT,/NORMAL, $
string(42,FORMAT='("!sx!r!U!M!Z(be)!x!n= ",I0," is the mean")'),CHARSIZE=3
JD
|
|
|