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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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