<?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 Re: Italicizing some letters of the treatment name in figures in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324382#M11358</link>
    <description>&lt;P&gt;Ooops..looks like I posted wrong dose format statemnt.&lt;/P&gt;&lt;P&gt;The format used is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value dose&lt;BR /&gt;1="30 µg !S={font_style=italic}Na!S={}-APR-1"&lt;BR /&gt;2="100 µg !S={font_style=italic}Na!S={}-APR-1";&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2017 19:58:39 GMT</pubDate>
    <dc:creator>Neeta</dc:creator>
    <dc:date>2017-01-12T19:58:39Z</dc:date>
    <item>
      <title>Italicizing some letters of the treatment name in figures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324058#M11335</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I’m working on a client request where client wants some letters of the treatment name italicized (eg. 100 µg Na-APR should be displayed as 100 µg &lt;STRONG&gt;&lt;EM&gt;Na&lt;/EM&gt;&lt;/STRONG&gt;-APR) in ODS RTF output.&lt;/P&gt;&lt;P&gt;I’m using following code and its working perfectly fine for listings and tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods escapechar = "!";&lt;/P&gt;&lt;P&gt;%let Na=%str(!S={font_style=italic}Na!S={});&amp;nbsp;&amp;nbsp; /*** Italicise Na as per client request ***/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc report column statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;column p_break day Dateline day orderc ("30 µg &amp;amp;Na.-APR-1 "&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual1 Change1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("100 µg &amp;amp;Na.-APR-1 "&amp;nbsp; Actual2 Change2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I’m using same code for figures, italicizing is not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm getting following output:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6673iC62B44E98E85E141/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 21:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324058#M11335</guid>
      <dc:creator>Neeta</dc:creator>
      <dc:date>2017-01-11T21:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Italicizing some letters of the treatment name in figures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324119#M11337</link>
      <description>&lt;P&gt;I would not introduce additonal complications of macro language until you have a solution that works so that you generate the correct code with the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might show the code (and preferably some data) that produces the graph. Your code is Proc Report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is one way with proc report use the RAW function to insert RTF code for italic text.&lt;/P&gt;
&lt;PRE&gt;ods escapechar="^";

ods rtf file="d:\data\italic.rtf"
style=meadow notoc_data;

proc report data=sashelp.class nowd;
   column ("Some ^{raw \i Measures}" Height Weight);
   define height/display;
   define weight/display;
run;   title;
ods rtf close;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jan 2017 00:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324119#M11337</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-12T00:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Italicizing some letters of the treatment name in figures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324359#M11354</link>
      <description>I am confused about whether the ODS ESCAPECHAR is being used with PROC REPORT (should work) or with ODS GRAPHICS or SAS/GRAPH (will probably NOT work).&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 12 Jan 2017 18:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324359#M11354</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-12T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Italicizing some letters of the treatment name in figures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324379#M11356</link>
      <description>&lt;P&gt;First, I'm creating format, then assigning it to dose var, then creating ODS graph template and passing it to PROC SGRENDER.&lt;/P&gt;&lt;P&gt;Here is part of the code used to create the figure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6686i96B510B7F3287532/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 19:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324379#M11356</guid>
      <dc:creator>Neeta</dc:creator>
      <dc:date>2017-01-12T19:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Italicizing some letters of the treatment name in figures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324382#M11358</link>
      <description>&lt;P&gt;Ooops..looks like I posted wrong dose format statemnt.&lt;/P&gt;&lt;P&gt;The format used is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value dose&lt;BR /&gt;1="30 µg !S={font_style=italic}Na!S={}-APR-1"&lt;BR /&gt;2="100 µg !S={font_style=italic}Na!S={}-APR-1";&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 19:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324382#M11358</guid>
      <dc:creator>Neeta</dc:creator>
      <dc:date>2017-01-12T19:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Italicizing some letters of the treatment name in figures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324391#M11359</link>
      <description>&lt;P&gt;Inline formatting will not work inside GTL. &amp;nbsp;With SAS 9.4M3, GTL does support unicode in the user defined formats, but you have to use the full ODS ESC string. &amp;nbsp;There is a HEADERATTRS option to control the font for the entire cell header, but there is no way to make just a portion of the header italic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, you could try using a Layout GRIDDED with 2 cells with a DATALATTICE in each. &amp;nbsp;Not sure if this is supported.. &amp;nbsp;Then, you can use an ENTRY for the dose that does support rich text so you could make just the "Na" in italic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am curious about &lt;STRONG&gt;columnvar=(dose grp)&lt;/STRONG&gt;. &amp;nbsp;This syntax was briefly supported in SAS 9.3 but never documented. &amp;nbsp;It is not well tested, so you are using a feature that is no longer supported in later releases of SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 20:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Italicizing-some-letters-of-the-treatment-name-in-figures/m-p/324391#M11359</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-01-12T20:36:31Z</dc:date>
    </item>
  </channel>
</rss>

