Data visualization with SAS programming

Italicize part of text in gtl layout overlay entry statement

Accepted Solution Solved
Reply
Contributor
Posts: 28
Accepted Solution

Italicize part of text in gtl layout overlay entry statement

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

 

 


Accepted Solutions
Solution
‎03-03-2017 06:27 AM
SAS Super FREQ
Posts: 925

Re: Italicize part of text in gtl layout overlay entry statement

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


All Replies
Solution
‎03-03-2017 06:27 AM
SAS Super FREQ
Posts: 925

Re: Italicize part of text in gtl layout overlay entry statement

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

Contributor
Posts: 28

Re: Italicize part of text in gtl layout overlay entry statement

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

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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