I am trying to format a PDF TOC. Here is an example of the output:
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;
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
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?
This icon on the message editor is for pasting code
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.