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;
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;
Sounds like you need to find a FONT that has both the normal letters and also Greek mu and gamma.
The default FONT used by SAS/Studio setup for SAS ODA makes the Greek characters the same as the Latin ones when I run your program.
Looks like that might be using TIMES as the FONT.
I am still using Enterprise guide.
Does this mean I cannot use a FONT of my choice?
Read up on how ODS templates and styles work.
You should be able to change the template or individual styles used. Different templates might use different fonts.
You can also override the font used by a template by setting a specific font using ODS style settings.
Here are the styles used by default in SAS ODA. Perhaps you could try those?
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.
Ready to level-up your skills? Choose your own adventure.