Help using Base SAS procedures

How to macro page number

Accepted Solution Solved
Reply
Contributor
Posts: 74
Accepted Solution

How to macro page number

Hello,

 

I am coding to ods PPt, adding headers of page number to each slide, do you know how to automate the page number, so that it skips the title slide and starts to count the page number from the second slide, which is page1, and third slide is page2, and fourth slide is page3. Thank you so much!


Accepted Solutions
Solution
‎11-11-2016 12:07 PM
Super Contributor
Posts: 394

Re: How to macro page number

It is not possible to customize the amount of space used by the various page elements other than the ways I described in my paper. You can move the footnote to the bottom right by suppressing or moving the slide number and date (options nodate nonumber, for example) and right-adjusting the footnote text. When you suppress the slide number and date, or move them to the top of the slide, the footnote space widens to occupy the entire width of the slide. Then you can right-adjust the footnotes text so that it butts up to the right side of the slide.

 

proc template;
   define style mystyle;
   	parent = styles.powerpointlight;
	class SystemFooter /
		just=r
		;
   end;
run;

options nodate nonumber;
ods powerpoint file="test.pptx" style=mystyle;
title 'Right-adjusted footnote';
footnote 'The ODS Destination for PowerPoint';
proc print data=sashelp.class(obs=6);
run;
ods powerpoint close;

 


example.jpg

View solution in original post


All Replies
Super Contributor
Posts: 394

Re: How to macro page number

This is not possible with the ODS destination for PowerPoint.

Contributor
Posts: 74

Re: How to macro page number

Hi Tim,

 

Thank you so much for your reminder. There is one thing, I put number after ods goptions, then I could have the slide number at the right downside of the corner of each slide, but why the position of footnote has changed. Would you please help? Thanks!

Super Contributor
Posts: 394

Re: How to macro page number

I'm sorry but I don't quite understand your question. The position of the slide number, date, and footnotes at the bottom of the slide are interrelated and a change in the position of any one can affect the others. In my paper A Second Look at the ODS Destination for PowerPoint I discuss how the position of footnotes, slide numbers, and the current date relate to each other. See pages 5-7 and Figure 11.

Contributor
Posts: 74

Re: How to macro page number

Hi Tim,

 

Your paper is so good that I could have a new view of sas ods ppt. Would you please suggest me how to distribute the percentage of each date, footnote and slide number occupying the space, because I dont want to give each of the three 1/3, can I customize the percentage? or how to move the footnote to the right side instead of being in the middle? Thanks!

Solution
‎11-11-2016 12:07 PM
Super Contributor
Posts: 394

Re: How to macro page number

It is not possible to customize the amount of space used by the various page elements other than the ways I described in my paper. You can move the footnote to the bottom right by suppressing or moving the slide number and date (options nodate nonumber, for example) and right-adjusting the footnote text. When you suppress the slide number and date, or move them to the top of the slide, the footnote space widens to occupy the entire width of the slide. Then you can right-adjust the footnotes text so that it butts up to the right side of the slide.

 

proc template;
   define style mystyle;
   	parent = styles.powerpointlight;
	class SystemFooter /
		just=r
		;
   end;
run;

options nodate nonumber;
ods powerpoint file="test.pptx" style=mystyle;
title 'Right-adjusted footnote';
footnote 'The ODS Destination for PowerPoint';
proc print data=sashelp.class(obs=6);
run;
ods powerpoint close;

 


example.jpg
☑ This topic is solved.

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

Discussion stats
  • 5 replies
  • 329 views
  • 0 likes
  • 2 in conversation