I found all my answers in this document. It was very helpful.
"SAS with Style: Creating your own ODS Style Template for RTF Output" Lauren Haworth, May 2004, Sugi 29.
Working with templates is usually never easy, but it ended out being very easy. I couldn't believe it
Correction: I have updated this so that it conforms with the standard that does not use the deprecated "replace" and instead used "class".
ods path reset;
ods path(REMOVE) SASUSER.templat;
ods path(PREPEND) Work.templat(update);
proc template;
define style Styles.Custom;
parent = Styles.RTF;
class fonts /
'docFont' = ("Arial",11pt) /* Data in table cells */
;
class Table from Output /
frame = VOID /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
rules = NONE /* internal borders: none, all, cols, rows, groups */
cellpadding = 2pt /* the space between table cell contents and the cell border */
cellspacing = 0pt /* the space between table cells, allows background to show */
borderwidth = 0pt /* the width of the borders and rules */
;
class Body from Document /
bottommargin = 1in
topmargin = 1in
rightmargin = 1in
leftmargin = 1in
;
end;
run;
option nocenter nodate nonumber ;
title;
%let normal=font_size=11pt;
%let answer=[fontweight=bold Leftmargin=0.6in ];
%let table_answer=[fontweight=bold &normal];
%let systemtitle=[fontweight=bold font_size=12pt];
%let sub_title=[fontweight=bold &normal];
%let mid_title=[fontweight=bold font_size=14pt just=c];
%let normal=[font_size=11pt];
%let Small_line=[font_size=5pt];
ods tagsets.rtf
style= Styles.Custom /*Changed*/
options (
VSPACE='OFF'
)
;
proc odstext;
p "Neque Porro Quisquam est qui Dolorem Ipsum " /style=&systemtitle;
p " "/style=&Small_line;
p "Quia Dolor sit Amet, Consectetur, Adipisci Velit"/style=&sub_title;
p " "/style=&Small_line;
p "Objectives:"/style=&sub_title;
p;
p '10A. Mauris iaculis libero a purus eleifend viverra.'/style=&normal;
p;
run;
/* ... */
s
... View more