Hi,
on a title statment that is to be displayed on a pdf.. how do i set different fontweight for different texts..
example:
title j=left "Country State City";
only country should be bold... and state and city should not be bold.
but when i put bold before country ...all the text after country becomes bold.
title j=left bold "Country State City";
note : escape character isn't working with title on pdfs. so cant use those....
with style we have options like font_weight=medium but on title statement if 'bold' works why doesn't 'medium' work.... strange!!!
title j=left bold "Country"
medium " State City";
this doesn't work... all get bolded...
can somebody help!!
mjack,
the rules for title are old and with limits
but with ods pdf text= you have a lot of possibilities
ods escapechar='^';
options nodate;
title font=Courier h=0.5cm italic j=l "where" font=Times bold h=0.7cm j=r "heavy" ;
ods pdf file="d:\temp\title.pdf" style=journal;
ods pdf text= " oui ^{style [just=l font_weight=bold font_size=10pt] Country}
^{style [just=r font_style=italic font_weight=light font_width=narrow font_size=15pt] State City}";
proc print data=sashelp.class(obs=3);
run;
ods pdf close;
Andre
for title the rules are at http://support.sas.com/kb/24/853.html
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 25. 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.