BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fastb
Fluorite | Level 6

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);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

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

View solution in original post

2 REPLIES 2
DanH_sas
SAS Super FREQ

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

fastb
Fluorite | Level 6

Many thanks Dan; this is exactly what I needed to know!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1191 views
  • 0 likes
  • 2 in conversation