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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 471 views
  • 0 likes
  • 2 in conversation