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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 541 views
  • 0 likes
  • 2 in conversation