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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.