<?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: Footnote and title in ods word in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596523#M23394</link>
    <description>&lt;P&gt;Yes, &lt;A href="https://communities.sas.com/t5/Graphics-Programming/Title-and-Footnote-outside-and-inside-a-graph/td-p/360669" target="_self"&gt;here is an example&lt;/A&gt; in a previous communities post that creates footnotes and titles both in and outside of the graph walls. The example uses&amp;nbsp;the &lt;A href="https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n15hq4n4n5f79en1gt1nwcn4pg07" target="_self"&gt;SGANNO= &lt;/A&gt;option in PROC SGPLOT to add a title and a footnote within the plot window using an annotation data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more examples of using annotation, there is t&lt;A href="https://support.sas.com/rnd/datavisualization/papers/Annotate_Your_SGPLOT_Graphs.pdf" target="_self"&gt;his SAS Global Forum paper&lt;/A&gt; or &lt;A href="https://support.sas.com/documentation/prod-p/grstat/9.4/en/PDF/odsadvg.pdf" target="_self"&gt;Chapter 4&lt;/A&gt; in this book.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 13:47:25 GMT</pubDate>
    <dc:creator>MichaelL_SAS</dc:creator>
    <dc:date>2019-10-15T13:47:25Z</dc:date>
    <item>
      <title>Footnote and title in ods word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596295#M23390</link>
      <description>&lt;P&gt;I want a title in the beginning of the word file, and a footnote in the end of the wordfile (not inside the graph borders). When I use the code below, there is no title produced (and no errors occur). I could not find the code for footnote. SAS 9.4 TS1M6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Define mystyle;
proc template;
	define style mystyle;
	parent = styles.word;
	style body from body / background=white;
	style header from header/ background=white;

    style fonts /                                                           
         'TitleFont2' = ("Albany AMT",2,bold)                                                                
         'TitleFont' = ("Albany AMT",3,bold)                                                                    
         'StrongFont' = ("Albany AMT",2,bold)                                                                
         'EmphasisFont' = ("Albany AMT",2,italic)                                                              
         'FixedFont' = ("Albany AMT",2)                             
         'BatchFixedFont' = ("Albany AMT",2)                                                                   
         'FixedHeadingFont' = ("Albany AMT",2)           
         'FixedStrongFont' = ("Albany AMT",2,bold)       
         'FixedEmphasisFont' = ("Albany AMT",2,italic)   
         'headingEmphasisFont' = ("Albany AMT",2,bold italic)       
         'headingFont' = ("Albany AMT",2,bold)                                                                
         'docFont' = ("Albany AMT",2);     
      class GraphFonts /                                                      
         'GraphDataFont' = ("Albany AMT",7pt)               
         'GraphUnicodeFont' = ("Albany AMT",9pt)                  
         'GraphValueFont' = ("Albany AMT",9pt)              
         'GraphLabel2Font' = ("Albany AMT",10pt)            
         'GraphLabelFont' = ("Albany AMT",10pt,bold)        
         'GraphFootnoteFont' = ("Albany AMT",10pt,italic)   
         'GraphTitleFont' = ("Albany AMT",11pt,bold)        
         'GraphTitle1Font' = ("Albany AMT",14pt,bold)       
         'GraphAnnoFont' = ("Albany AMT",10pt);
	end;
run;

data cc8;
   input ch 1-4 arm $ lbtest $;
   datalines;  
0.28 TrtA ALP
0.30 TrtA ALP
0.33 TrtA ALP
0.24 TrtA ALP
0.45 TrtA ALP
0.54 TrtA ALP
0.58 TrtB ALP
0.30 TrtB ALP
0.33 TrtB ALP
0.26 TrtB ALP
0.45 TrtB ALP
0.34 TrtB ALP
;
run;

option nonumber nodate;

ods word file="H:\Boxplots.docx" style=mystyle title='Boxplots of clinical chemistry';
proc sgplot data=cc8;
 	vbox ch /group=arm; label ch="Change from baseline (unit)"; refline 0;
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 15:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596295#M23390</guid>
      <dc:creator>Sisa</dc:creator>
      <dc:date>2019-10-14T15:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Footnote and title in ods word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596362#M23391</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The ODS style template changes the characteristics of the TITLE (or FOOTNOTE) that you insert into OUTPUT using a TITLE or FOOTNOTE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What you show in your code is a TITLE option on the ODS invocation statement -- that is NOT controlled by the style template. As you can see below, the TITLE="title string" that you place on the ODS statement goes into the document metadata -- as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="title_inside_sandwich.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33132iCAE7D2BF6A8E3467/image-size/large?v=v2&amp;amp;px=999" role="button" title="title_inside_sandwich.png" alt="title_inside_sandwich.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use a regular TITLE statement:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;title 'This is my title';&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;immediately above your SGPLOT statement or between the PROC SGPLOT and the RUN statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 20:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596362#M23391</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-14T20:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Footnote and title in ods word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596366#M23392</link>
      <description>&lt;P&gt;Looking at the documentation the ODS WORD statement, the title specified in the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p10mxeb6wxqfjgn1p5u0w4t8qf20.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p082bc92xxwaben1kbog3n4gwmw9" target="_self"&gt;TITLE=&lt;/A&gt;&amp;nbsp;option appears in the document properties.&amp;nbsp;Using the example you provided I see&amp;nbsp;&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="docProp.png" style="width: 362px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33133iCB92A47BD8F20ABA/image-size/large?v=v2&amp;amp;px=999" role="button" title="docProp.png" alt="docProp.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think instead you might want to use the TITLE and FOOTNOTE statements along with the &lt;A href="https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p10mxeb6wxqfjgn1p5u0w4t8qf20.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n04he7cw9753y9n1s0n8b784zzbd" target="_self"&gt;NOGTITLE&lt;/A&gt; and &lt;A href="https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p10mxeb6wxqfjgn1p5u0w4t8qf20.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0j2mxj9kbhx8hn0zqcja6hsqix5" target="_self"&gt;NOGFOOTNOTE&lt;/A&gt; options in the ODS WORD statement to move the title and footnote out of the graph borders.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for example something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods word file="H:\Boxplots.docx" style=mystyle nogtitle nogfootnote;
title 'Boxplots of clinical chemistry';
footnote 'footnote text';
proc sgplot data=cc8;
 	vbox ch /group=arm; label ch="Change from baseline (unit)"; refline 0;
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 20:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596366#M23392</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2019-10-14T20:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Footnote and title in ods word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596513#M23393</link>
      <description>&lt;P&gt;Thank you both. Is it possible to have a title both inside each graph window and one for the whole document? And the same for footnotes.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 13:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596513#M23393</guid>
      <dc:creator>Sisa</dc:creator>
      <dc:date>2019-10-15T13:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Footnote and title in ods word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596523#M23394</link>
      <description>&lt;P&gt;Yes, &lt;A href="https://communities.sas.com/t5/Graphics-Programming/Title-and-Footnote-outside-and-inside-a-graph/td-p/360669" target="_self"&gt;here is an example&lt;/A&gt; in a previous communities post that creates footnotes and titles both in and outside of the graph walls. The example uses&amp;nbsp;the &lt;A href="https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n15hq4n4n5f79en1gt1nwcn4pg07" target="_self"&gt;SGANNO= &lt;/A&gt;option in PROC SGPLOT to add a title and a footnote within the plot window using an annotation data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more examples of using annotation, there is t&lt;A href="https://support.sas.com/rnd/datavisualization/papers/Annotate_Your_SGPLOT_Graphs.pdf" target="_self"&gt;his SAS Global Forum paper&lt;/A&gt; or &lt;A href="https://support.sas.com/documentation/prod-p/grstat/9.4/en/PDF/odsadvg.pdf" target="_self"&gt;Chapter 4&lt;/A&gt; in this book.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 13:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Footnote-and-title-in-ods-word/m-p/596523#M23394</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2019-10-15T13:47:25Z</dc:date>
    </item>
  </channel>
</rss>

