BookmarkSubscribeRSS Feed
Jima
Calcite | Level 5

I am trying to format a PDF TOC. Here is an example of the output:

Jima_0-1648325873854.png

I would like to change the font size, font style, and so on. Also, I would like to change the TOC to read:

 

Ten-Year Fall Enrollments

   Chart1a.....

   Chart 1b...

and so on.

 

Any suggestions?

Here is a copy of the statements:

options orientation = landscape nodate;

ods pdf file = "&drive.\&dir.\urp01x.pdf"
pdftoc=1 uniform contents=yes;
ods escapechar='~';
options nonumber;

goptions ftitle='Swissb' fby='Swissb' hby=2.2;

options nonumber printerpath=pdf;

ods proclabel "Ten-Year Fall Enrollments" ;

proc sgplot data=urp.tenyrs_stud pctlevel=group
description="Chart 1a: Ten-Year Fall Enrollment by Race/Ethinicity";
vbar year / group=racex groupdisplay=stack;
&color5.;
label racex = 'Race/Ethincity'
year = 'Year';
run;

ods proclabel "Ten-Year Fall Enrollments";

proc sgpanel data=urp.tenyrs_stud description="Chart 1b: Ten-Year Fall Enrollment by Gender and Race/Ethinicity";
where gender in ('M','1','F','2');
panelby gender;
vbar year / group=racex groupdisplay=stack;
&color5.;
label racex = 'Race/Ethincity'
year = 'Year'
gender = 'Gender';
format gender $gender.;
run;

ods pdf close;

3 REPLIES 3
ghosh
Barite | Level 11

I find your code hard to read, you should use the running man icon to paste it.

 

I have always found this paper quite helpful in formatting my TOC

 

https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4265-2020.pdf

Jima
Calcite | Level 5

Thanks for your reply.

Somehow I missed the paper you mentioned in my searches. I will take a look at it.

 

You noted "I find your code hard to read, you should use the running man icon to paste it." I am confused by this statement. Can you elaborate?

 

ghosh
Barite | Level 11

This icon on the message editor is for pasting code

ghosh_0-1649006928852.png

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 3 replies
  • 965 views
  • 0 likes
  • 2 in conversation