Hello, I am trying to make a custom word template. I got most of the way there, but I can't change the font of the 1st TOC level to Arial: proc template;
define style styles.customjournal;
parent = styles.journal1a;
style fonts from fonts /
'docFont' = ("Arial", 10pt)
'headingFont' = ("Arial", 10pt, bold)
'TitleFont' = ("Arial", 10pt, bold)
'FooterFont' = ("Arial", 9pt);
style Table from Table /
cellpadding = 2;
style Header from Header /
background=grayf2;
style Data from Data /
just=center;
style TitlesAndFooters from TitlesAndFooters /
just=left;
style SystemFooter from TitlesAndFooters /
font = Fonts('FooterFont');
style SystemTitle2 from SystemTitle /
font = Fonts('docFont');
style SystemTitle3 from SystemTitle;
class contenttitle /
content = "TABLE OF CONTENTS"
font = Fonts('TitleFont')
fontsize=5
just = left;
class TOC1 /
marginbottom = 5pt
font = Fonts('docFont');
class TOC2 /
marginleft = .14in
marginbottom = 5pt
font = Fonts('docFont');
class TOC3 /
marginleft = .28in
marginbottom = 5pt
font = Fonts('docFont');
end;
run;
options nobyline nodate nonumber;
options topmargin=2.5cm leftmargin=3.0cm bottommargin=1.5cm rightmargin=1.5cm;
options orientation=landscape;
options papersize="ISO A4";
ods word file="C:\Users\&sysuserid\Downloads\SAS\toc_issue.docx" style=styles.customjournal
options(cant_split="no"
toc_data="yes"
contents="yes");
proc report data=sashelp.cars;
columns Origin Make n;
define Origin / group;
define Make / group;
run;
ods word close;
options byline date number;
options orientation=portrait; In Word, the font is Cumberland AMT which I assume is a leftover from journal1 resp. journal1a: What do I need to add to the template to change the font of the first node to Arial? Thanks.
... View more