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;
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.
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.
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.