The SAS Output Delivery System and reporting techniques

Proc Template to change Font size of PROC ODSTEXT LIST item in ODS Powerpoint

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 79
Accepted Solution

Proc Template to change Font size of PROC ODSTEXT LIST item in ODS Powerpoint

Hi, I am trying to change the font size of list items in ODS text but to no avail....  (note the template does successfully change the text size of proc ods paragraph font, but not the bulleted list font).   Help in adjusting the template as required will be much appreciated.

 

 

filename pptout "temp.ppt";

proc template;
   define style styles.mypowerpoint;
      parent = styles.powerpointlight;
      class SystemTitle /         fontsize=20pt;
		scheme 'ODS Light'/ body_font = ("Calibri, <MTsans-serif>, <sans-serif>",12pt) ;
	class usertext /    font_size=12pt;
   style paragraph from usertext;
   end;
run;

ods powerpoint file=pptout  nogfootnote style=mypowerpoint;
ods powerpoint layout=titleslide nogtitle;
proc odstext; 
   p "This text is 12pt - YEY :-)" ; 
run; 
proc odstext;
   list;
      	item;
			p "But my list isn't 12pt";
				list;
					item;
					p 'Nor is my nested list';
					list;
						item 'They are both 32pt';
					end;
				end;
				item 'How can I change this in Proc Template?';
	end;
run;

ods _all_ close;

Many thanks,

Marie


Accepted Solutions
Solution
‎02-13-2017 06:35 PM
Frequent Contributor
Posts: 79

Re: Proc Template to change Font size of PROC ODSTEXT LIST item in ODS Powerpoint

[ Edited ]

Okay - something simple I didn't know ... to see the template I just needed to use the following code:

 

proc template;
source styles.powerpointlight;
run;

then it is easy to see that I eneded to adjust the List class

 

    class List /
      fontsize = 12pt;

 

Reference: Concepts: Styles and the TEMPLATE Procedure

View solution in original post


All Replies
Solution
‎02-13-2017 06:35 PM
Frequent Contributor
Posts: 79

Re: Proc Template to change Font size of PROC ODSTEXT LIST item in ODS Powerpoint

[ Edited ]

Okay - something simple I didn't know ... to see the template I just needed to use the following code:

 

proc template;
source styles.powerpointlight;
run;

then it is easy to see that I eneded to adjust the List class

 

    class List /
      fontsize = 12pt;

 

Reference: Concepts: Styles and the TEMPLATE Procedure

Super User
Posts: 11,144

Re: Proc Template to change Font size of PROC ODSTEXT LIST item in ODS Powerpoint

Kudos for finding the solution yourself!

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 252 views
  • 1 like
  • 2 in conversation