ods pdf

Reply
Contributor
Posts: 42

ods pdf

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

Super Contributor
Posts: 273

Re: ods pdf

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

Ask a Question
Discussion stats
  • 1 reply
  • 167 views
  • 0 likes
  • 2 in conversation