Usage Note 24025: In ODS RTF, how can I change the fonts of the column headers?
The fonts for the column headers can be changed by modifying the
fonts associated with the string 'headingFont'; see example 1.
This can also
be done by modifying the style element Header; see example 2.
View output.
/* Example 1 */
proc template;
define style styles.newrtf;
parent=styles.rtf;
replace fonts /
'TitleFont2' = ("Times",12pt,Bold Italic)
'TitleFont' = ("Times",13pt,Bold Italic)
'StrongFont' = ("Times",10pt,Bold)
'EmphasisFont' = ("Times",10pt,Italic)
'FixedEmphasisFont' = ("Courier New, Courier",9pt,Italic)
'FixedStrongFont' = ("Courier New, Courier",9pt,Bold)
'FixedHeadingFont' = ("Courier New, Courier",9pt,Bold)
'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",6.7pt)
'FixedFont' = ("Courier New, Courier",9pt)
'headingEmphasisFont' = ("Times",11pt,Bold Italic)
/* 'headingFont' = ("Times",11pt,Bold) */
'headingFont' = ("Times",11pt,Bold italic)
'docFont' = ("Times",10pt);
end;
run;
ods rtf body='rf3.rtf' style=styles.newrtf;
proc freq data=sashelp.class;
title 'Modifying the fonts for the column headers';
run;
ods rtf close;
/* Example 2 */
proc template;
define style styles.newrtf;
parent=styles.rtf;
style header from header /
font=("Times",11pt,Bold italic);
end;
run;
ods rtf body='rf3.rtf' style=styles.newrtf;
proc freq data=sashelp.class;
title 'Modifying the fonts for the column headers';
run;
ods rtf close;
See more information about
PROC TEMPLATE and the RTF destination.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> RTF
|
Date Modified: | 2007-08-27 14:37:53 |
Date Created: | 2004-06-25 12:57:37 |