BookmarkSubscribeRSS Feed
Calcite | Level 5

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


   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;
label racex = 'Race/Ethincity'
year = 'Year';

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;
label racex = 'Race/Ethincity'
year = 'Year'
gender = 'Gender';
format gender $gender.;

ods pdf close;

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

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?


Barite | Level 11

This icon on the message editor is for pasting code




Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2 in conversation