<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic TEXTDECORATION not compatible with ODS RTF? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TEXTDECORATION-not-compatible-with-ODS-RTF/m-p/457476#M20891</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating an rtf document and am trying to write out a mathematical expression using ods rtf text.&amp;nbsp; I'm trying to generate x-bar, an X with a bar above it.&amp;nbsp; I figured this could be easily acheived using ODS RTF TEXT and a textdecoration = overline styling option.&amp;nbsp;&amp;nbsp;When I run this as a RTF, I do not get the overline; however, the PDF does show the overline.&amp;nbsp; I use many styling options and have not had what appears to be compatibility issues.&amp;nbsp; Seems like textdecoration works with ODS PDF, but not ODS RTF.&amp;nbsp; Am I correct?&amp;nbsp; Is there a workaround for me to create an X-bar (note: I've already tried unicode but was not able to find an x-bar in the character map)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or advice is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*RTF creation*/
ODS ESCAPECHAR = '~';
ODS RTF FILE = "Temp.RTF"; 
ODS RTF TEXT="~{style [just=r textdecoration=overline color=red]Here is some random overlined text.}"; 
ODS RTF CLOSE;

/*PDF creation*/
ODS ESCAPECHAR = '~';
ODS PDF FILE = "Temp.PDF" ; 
ODS PDF TEXT="~{style [just=r textdecoration=overline color=red]Here is some random overlined text.}"; 

ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 19:33:24 GMT</pubDate>
    <dc:creator>chjones</dc:creator>
    <dc:date>2018-04-25T19:33:24Z</dc:date>
    <item>
      <title>TEXTDECORATION not compatible with ODS RTF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TEXTDECORATION-not-compatible-with-ODS-RTF/m-p/457476#M20891</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating an rtf document and am trying to write out a mathematical expression using ods rtf text.&amp;nbsp; I'm trying to generate x-bar, an X with a bar above it.&amp;nbsp; I figured this could be easily acheived using ODS RTF TEXT and a textdecoration = overline styling option.&amp;nbsp;&amp;nbsp;When I run this as a RTF, I do not get the overline; however, the PDF does show the overline.&amp;nbsp; I use many styling options and have not had what appears to be compatibility issues.&amp;nbsp; Seems like textdecoration works with ODS PDF, but not ODS RTF.&amp;nbsp; Am I correct?&amp;nbsp; Is there a workaround for me to create an X-bar (note: I've already tried unicode but was not able to find an x-bar in the character map)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or advice is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*RTF creation*/
ODS ESCAPECHAR = '~';
ODS RTF FILE = "Temp.RTF"; 
ODS RTF TEXT="~{style [just=r textdecoration=overline color=red]Here is some random overlined text.}"; 
ODS RTF CLOSE;

/*PDF creation*/
ODS ESCAPECHAR = '~';
ODS PDF FILE = "Temp.PDF" ; 
ODS PDF TEXT="~{style [just=r textdecoration=overline color=red]Here is some random overlined text.}"; 

ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TEXTDECORATION-not-compatible-with-ODS-RTF/m-p/457476#M20891</guid>
      <dc:creator>chjones</dc:creator>
      <dc:date>2018-04-25T19:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: TEXTDECORATION not compatible with ODS RTF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TEXTDECORATION-not-compatible-with-ODS-RTF/m-p/457542#M20892</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This was what I got when I used the {unicode} function with ODS ESCAPECHAR, but I also needed to use the Arial Unicode MS font for the overline and caret to look correct:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xbar_rtf.png" style="width: 454px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20150iB15673E52FE5FA85/image-size/large?v=v2&amp;amp;px=999" role="button" title="xbar_rtf.png" alt="xbar_rtf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Using this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';

ods rtf file='c:\temp\xbar_phat.rtf';
proc report data=sashelp.class(obs=3);
compute before _page_ / style={font_face="Arial Unicode MS"};
  line 'xbar should be: x^{unicode 0304}';
  line ' ';
  line 'phat should be: p^{unicode 0302}';
endcomp;
run;
ods rtf close;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 21:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TEXTDECORATION-not-compatible-with-ODS-RTF/m-p/457542#M20892</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-04-25T21:44:42Z</dc:date>
    </item>
  </channel>
</rss>

