Usage Note 24023: In ODS RTF, how can I modify the font style of the titles?
The font style for the titles and footnotes can be changed by modifying the
argument associated with the string 'TitleFont'. The font style "italic" can
be removed from the argument; see example 1. This can also be done by directly
modifying the style element SystemTitle; see example 2.
See also FAQ 3088 for more information about titles and footnotes.
/* Example 1 */
proc template;
define style styles.newrtf;
parent=styles.rtf;
replace fonts /
'TitleFont2' = ("Times",12pt,Bold Italic)
'TitleFont' = ("Times",13pt,Bold )
/*'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)
'docFont' = ("Times",10pt);
end;
run;
ods rtf body='rf1.rtf' style=styles.newrtf;
proc freq data=sashelp.class;
title 'modifying the foreground color';
run;
ods rtf close;
/* Example 2 */
proc template;
define style styles.newrtf;
parent=styles.rtf;
style SystemTitle from Titlesandfooters /
font = ("Times",13pt,Bold );
end;
run;
ods rtf body='rf1.rtf' style=styles.newrtf;
proc freq data=sashelp.class;
title 'modifying the title font';
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-28 14:40:50 |
| Date Created: | 2004-06-25 12:17:55 |