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.
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";
@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.
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
Attributes
@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 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.