BookmarkSubscribeRSS Feed
arjessup
Fluorite | Level 6

Is it possible to have a different font size for a title and a footnote when using ODS?  For example I want my title font to be 16pt, but my footer to be 8pt.

3 REPLIES 3
Reeza
Super User

Sure, you can easily customize these within the TITLE or FOOTNOTE statements.

 

title j=left
font= 'Times New Roman' color=blue bcolor=red "Student Data "
c=green bold italic "Growth Measurements";

title2 j=center color=red underlin=1 height=28pt "2" height=24pt "0" height=20pt "1" height=16pt "8";
footnote j=left height=20pt color=red "Prepared " c='#FF9900' "on";
footnote2 j=center color=blue height=24pt "&sysdate9"; footnote3 link='http://support.sas.com/documentation' "SAS Documentation";

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=lestmtsglobal&docsetTarge...

 


@arjessup wrote:

Is it possible to have a different font size for a title and a footnote when using ODS?  For example I want my title font to be 16pt, but my footer to be 8pt.


 

arjessup
Fluorite | Level 6
Sorry, I meant when using Proc Template. This is my code:


proc template;
define style styles.smaller;
parent = styles.printer;
class fonts from fonts / Reduce all sizes by 2pt
'TitleFont2' = ("Times",20pt,Bold Italic)
'TitleFont' = ("Times",20pt,Bold Italic)
'StrongFont' = ("Times",8pt,Bold)
'EmphasisFont' = ("Times",8pt,Italic)
'FixedEmphasisFont' = ("Courier New, Courier",7pt,Italic)
'FixedStrongFont' = ("Courier New, Courier",7pt,Bold)
'FixedHeadingFont' = ("Courier New, Courier",7pt,Bold)
'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",5pt)
'FixedFont' = ("Courier New, Courier",7pt)
'headingEmphasisFont' = ("Times",9pt,Bold Italic)
'headingFont' = ("Times",9pt,Bold)
'docFont' = ("Times",8pt);
class Table from Output /
rules = ALL
cellpadding = 4pt Reduced from 4pt to 2pt
cellspacing = 0.25pt
borderwidth = 0.75pt;
end;
run;




Reeza
Super User

It's buried in the link but I think you can use SystemTitle, SystemTitle2-10 and systemFooter to get the fonts set.

 

Style Element Names

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=odsproc&docsetTarget=p16o...

 

Attributes

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=odsproc&docsetTarget=n0ot...

 


@arjessup wrote:
Sorry, I meant when using Proc Template. This is my code:


proc template;
define style styles.smaller;
parent = styles.printer;
class fonts from fonts / Reduce all sizes by 2pt
'TitleFont2' = ("Times",20pt,Bold Italic)
'TitleFont' = ("Times",20pt,Bold Italic)
'StrongFont' = ("Times",8pt,Bold)
'EmphasisFont' = ("Times",8pt,Italic)
'FixedEmphasisFont' = ("Courier New, Courier",7pt,Italic)
'FixedStrongFont' = ("Courier New, Courier",7pt,Bold)
'FixedHeadingFont' = ("Courier New, Courier",7pt,Bold)
'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",5pt)
'FixedFont' = ("Courier New, Courier",7pt)
'headingEmphasisFont' = ("Times",9pt,Bold Italic)
'headingFont' = ("Times",9pt,Bold)
'docFont' = ("Times",8pt);
class Table from Output /
rules = ALL
cellpadding = 4pt Reduced from 4pt to 2pt
cellspacing = 0.25pt
borderwidth = 0.75pt;
end;
run;





 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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