BookmarkSubscribeRSS Feed
mjack
Calcite | Level 5

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!!

1 REPLY 1
Andre
Obsidian | Level 7

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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1 reply
  • 546 views
  • 0 likes
  • 2 in conversation