BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

The other day I noticed that ^S={...} is not recognised in the title of the xaxistable statement.

It seems to be the same for the title statement used as graph image or did I miss an option for it?

 

title color=blue 'Example:' color=red 'Test';

proc sgplot data=sashelp.class;
    vbarbasic sex / response=height stat=mean;
run;

ods escapechar='^';

title '^S={color=red}Example:^S={color=blue}Test';

proc sgplot data=sashelp.class;
    vbarbasic sex / response=height stat=mean;
run;

proc print data=sashelp.class (obs=2);
run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

The inline style escapement is not supported in ODS graphics. The only inline escapement supported is unicode (in all text) and sup/sub (in the INSET statement and TEXT annotation). The rich text support you describe can be done using the standard TITLE/FOOTNOTE syntax you showed, as well as the TEXT/TEXTCONT functions in the annotation facility.

View solution in original post

3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
Well, first, since the options available in the TITLE and FOOTNOTE statements work, as shown in your first SGPLOT, there's really no need to use inline formatting. However if you had used ODS HTML NOGTITLE; Before your TITLE statement using the ^S style format, then the TITLE would have been rendered by the active ODS destination, in this case, the default ODS HTML destination. But the simple way to do what you want is to just stick with the first example.
Cynthia
xxformat_com
Barite | Level 11

Hi,

I used color= as I thought it would be easier to illustrate the issue. But my actual problem is with "bold" which has no counterpart.

DanH_sas
SAS Super FREQ

The inline style escapement is not supported in ODS graphics. The only inline escapement supported is unicode (in all text) and sup/sub (in the INSET statement and TEXT annotation). The rich text support you describe can be done using the standard TITLE/FOOTNOTE syntax you showed, as well as the TEXT/TEXTCONT functions in the annotation facility.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1564 views
  • 3 likes
  • 3 in conversation