sas rtf输出中标题和脚注的位置
我编写了一个模板来创建三行表。它非常接近我所需要的。还有一些小问题:标题和脚注与主表之间有一两行空白。我如何改变它来消除脚注和主表之间的空行?标题行的小标题。提前谢谢sas rtf输出中标题和脚注的位置,sas,rtf,Sas,Rtf,我编写了一个模板来创建三行表。它非常接近我所需要的。还有一些小问题:标题和脚注与主表之间有一两行空白。我如何改变它来消除脚注和主表之间的空行?标题行的小标题。提前谢谢 proc template; define style tfl_table; style body / leftmargin = 1in rightmargin = 1in topmargin = 0.5in b
proc template;
define style tfl_table;
style body /
leftmargin = 1in
rightmargin = 1in
topmargin = 0.5in
bottommargin = 0.5in;
style table /
frame = hsides
rules = groups
cellpadding = 3pt
cellspacing = 0pt
width = 100%;
style header /
/*This is the header line for the table.*/
fontfamily = 'Courier New'
fontsize = 9pt;
style data /
/*This is the data in the table.*/
fontfamily = 'Courier New'
fontsize = 9pt;
style SystemTitle /
fontfamily = 'Courier New'
color = red
fontsize = 10pt;
style systemfooter /
/*This affects the text in footnoteX statement.*/
textalign = left
fontfamily = 'Courier New'
fontsize = 9pt;
style NoteContent from Note /
/*change the font in the compute line*/
textalign = left
fontsize = 9pt
fontfamily = 'Courier New';
end;
run;
ods html close;
ods rtf file = "&dir.\test-run.rtf" bodytitle style = tfl_table;
ods escapechar = '^';
title1 'First Title with title1 statement';
title2 'Second Title with title2 statement';
footnote1 'footnote1 with footnote1 statement';
footnote2 'footnote2 with footnote2 statement';
proc report data = sashelp.class nowd;
column sex name age height weight;
define sex / group;
break after sex / page;
run;
ods rtf close;
title;
footnote;
修正脚注的解决方案之一是使用以下compute after语句。但我不知道如何消除标题和主表之间的空行。< /P>
compute after _page_;
line "footnote generated by compute after and line";
endcomp;
如果您将其切换到,您将在没有任何其他更改的情况下删除其中一个脚注空行(除了删除该ODS目标中默认的bodytitle
)。我不确定您是否可以删除这一空行(部分原因是删除这一行通常是件坏事,当然特定的用例可能会建议这样做)
tagsets.rtf
还可以让您在理论上进行自己的修改-标记集可以用自己的语言进行编辑。右键单击结果,选择模板,然后导航到SASHELP.TMPLMST.Tagsets。查看如何在线编辑标记集,以及它们的语言是如何工作的——虽然没有那么复杂,但也不是很琐碎。请随意在此处提问,如果有人知道如何回答,您将得到答案。如果您将此贴在communities.sas.com上,辛西娅·曾德尔可能会为您提供答案。