I need to put the following text in the plot area of a graph I that created usinmg gtl layout overlay:
I2 = 0.998 The I needs to be italicized and the 2 needs to be superscript.
I can get the 2 superscript using the code below, but I can't figure out how to put the I in italics without putting the whole string in italics.
How can I italicize only one letter of the text?
ENTRY 'I(*ESC*){unicode "00B2"x} = 0.998'/
TEXTATTRS = (SIZE = 8pt FAMILY= "Times New Roman")
AUTOALIGN = BOTTOMRIGHT);
You can break up your string to add or change formatting information, like this:
ENTRY textattrs=(style=italic) 'I' textattrs=(style=normal) '(*ESC*){unicode "00B2"x} = 0.998' /
TEXTATTRS = (SIZE = 8pt FAMILY= "Times New Roman");
Hope this helps!
Dan
You can break up your string to add or change formatting information, like this:
ENTRY textattrs=(style=italic) 'I' textattrs=(style=normal) '(*ESC*){unicode "00B2"x} = 0.998' /
TEXTATTRS = (SIZE = 8pt FAMILY= "Times New Roman");
Hope this helps!
Dan
Many thanks Dan; this is exactly what I needed to know!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.