I am trying to center text in ods tagsets.rtf output, but the text is still left justified even with j=c.
ods escapechar="^";
ods tagsets.rtf file="&outpath.\table1.rtf";
ods text="^S={j=c fontsize=13pt fontweight=bold}First text on page.";
ods tagsets.rtf close;
Thanks!
Hi:
You need to make a STYLE template change with PDF and RTF destinations to alter the justification of the ODS TEXT strings in the output. The style element that changes the ODS TEXT value is the USERTEXT style element. Here's an example, compared to changing title:
You'll find more about changing style templates in this paper https://support.sas.com/resources/papers/proceedings10/033-2010.pdf and about templates in general in this paper: https://support.sas.com/resources/papers/proceedings09/227-2009.pdf ..
Hope this helps,
Cynthia
You have to tell SAS how wide the text display area is. Add a Leftmargin= 1in and Rightmargin=1in or similar to the ODS Text. Pick your measurement as needed and you can use units of IN (inches) CM (centimeters) . There are other units but this are pretty easily understood.
Hi:
You need to make a STYLE template change with PDF and RTF destinations to alter the justification of the ODS TEXT strings in the output. The style element that changes the ODS TEXT value is the USERTEXT style element. Here's an example, compared to changing title:
You'll find more about changing style templates in this paper https://support.sas.com/resources/papers/proceedings10/033-2010.pdf and about templates in general in this paper: https://support.sas.com/resources/papers/proceedings09/227-2009.pdf ..
Hope this helps,
Cynthia
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.