<?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 Styling Fraction in ODS RTF Document in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673876#M24317</link>
    <description>&lt;P&gt;I am trying to style a fraction into an RTF document using native RTF code, but can't seem to get it right. I have seen some example of how this is done with other mathematical symbols and structures, but not fractions. Below is what I've tried. The first piece works (borrowed from "To ODS RTF and Beyond"). The second piece is my own attempt and does not yield the desired result (a vertical fraction of a/b).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data t;
 length x $150;
 x="{A capital sigma: \field{\*\fldinst {EQ \\I\\su(i=1,n, ) }}}";
 output; 
 x="{\field{\*\fldinst {EQ \\mf\\mnum(a)\\mden(b)}}}";
 output;
run; 

ods rtf style=plain;
proc report data=t noheader nofs style={protectspecialchars=off rules=none};
run;
ods rtf close; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am not married to using RTF codes. If another approach works better, I'd be happy to use it.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2020 06:25:56 GMT</pubDate>
    <dc:creator>tburus</dc:creator>
    <dc:date>2020-08-01T06:25:56Z</dc:date>
    <item>
      <title>Styling Fraction in ODS RTF Document</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673876#M24317</link>
      <description>&lt;P&gt;I am trying to style a fraction into an RTF document using native RTF code, but can't seem to get it right. I have seen some example of how this is done with other mathematical symbols and structures, but not fractions. Below is what I've tried. The first piece works (borrowed from "To ODS RTF and Beyond"). The second piece is my own attempt and does not yield the desired result (a vertical fraction of a/b).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data t;
 length x $150;
 x="{A capital sigma: \field{\*\fldinst {EQ \\I\\su(i=1,n, ) }}}";
 output; 
 x="{\field{\*\fldinst {EQ \\mf\\mnum(a)\\mden(b)}}}";
 output;
run; 

ods rtf style=plain;
proc report data=t noheader nofs style={protectspecialchars=off rules=none};
run;
ods rtf close; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am not married to using RTF codes. If another approach works better, I'd be happy to use it.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 06:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673876#M24317</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-08-01T06:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Styling Fraction in ODS RTF Document</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673916#M24319</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;It's not clear to me what you are trying to achieve. When I use Microsoft Word, I have to do an Insert Symbol to get the Sigma and Insert Equation to get vertical fraction as shown below using only Word tools:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1596295289173.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47854i6C8ADBC5229CCA61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1596295289173.png" alt="Cynthia_sas_0-1596295289173.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;But the nearest I could get in SAS was this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1596295315125.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47855iF1D07B5F12580EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1596295315125.png" alt="Cynthia_sas_1-1596295315125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fraction doesn't look quite the way you implied.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I think you might need some kind of equation editor to get the vertical fraction or maybe a math font. If there's a way to do this in RTF control strings, I'm not sure. You might want to check with Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 15:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673916#M24319</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-01T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Styling Fraction in ODS RTF Document</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673919#M24320</link>
      <description>&lt;P&gt;When I run the code above I get the sigma with sub and superscripts to display just fine. I imagine there is some sort of similar way to style fractions using the \mf \mnum and \mden control codes, I just can't seem to work it out. Do you have Tech Support's number :)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frac.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47856iF0E54E2B61232429/image-size/large?v=v2&amp;amp;px=999" role="button" title="frac.png" alt="frac.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 15:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673919#M24320</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-08-01T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Styling Fraction in ODS RTF Document</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673930#M24322</link>
      <description>Hi: &lt;BR /&gt;To open a track with Tech Support, fill out the form at this link: &lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sat, 01 Aug 2020 15:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673930#M24322</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-01T15:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Styling Fraction in ODS RTF Document</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673931#M24323</link>
      <description>&lt;P&gt;Thanks. I actually just found it. Appears MS Word doesn't use all the same RTF codes. This is what I needed:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data eq1;
 length x $150;
 x="{\field{\*\fldinst {EQ weight = \\F(a, b)}}}";
 output;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Aug 2020 15:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Styling-Fraction-in-ODS-RTF-Document/m-p/673931#M24323</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-08-01T15:55:09Z</dc:date>
    </item>
  </channel>
</rss>

