BookmarkSubscribeRSS Feed
mmohotsi
Quartz | Level 8

How can I assign a unicode the same font and and style as the title statement for a pdf report.

 

I have this code to try the procedure. I need the UNICODE to have the same style font and color to the text in the title statement.

 

My code is as below

 

Data tsets;
input name $;
cards;
Carbon
Copper
Lithium
Arsenic
;
run;


ods escapechar='^';
%let home = 'C:\Users\mmohotsi\OneDrive - Rand Water\Desktop\Deleted';

%let home = '<path>';


ods pdf file="&home\report..pdf";

 

title 'Improving special characters like ^{unicode 03C7} and ^{unicode 03BC}g/l and ^{unicode 03B3}';

proc report data=tsets;
run;

3 REPLIES 3
Ksharp
Super User
Data tsets;
input name $;
cards;
Carbon
Copper
Lithium
Arsenic
;
run;


ods escapechar='^';
%let home = c:\temp ;

ods pdf file="&home\report.pdf";

title 'Improving special characters like ^{style [fontfamily=calibri fontweight=bold color=red] ^{unicode 03C7}} and ^{unicode 03BC}g/l and ^{unicode 03B3}';

proc report data=tsets;
run;
ods pdf close;

Ksharp_0-1769072558620.png

 

Tom
Super User Tom
Super User

Sounds like you need to find a FONT that has both the normal letters and also Greek mu and gamma.

Screenshot 2026-01-22 at 10.40.38 AM.png

mmohotsi
Quartz | Level 8
Yes indeed
The customer seeks a special character that is normal. Could be Arial or any normal font.
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
  • 165 views
  • 0 likes
  • 3 in conversation