LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 9 Jun 2008 08:02:07 -0700
Reply-To:     John Hendrickx <John2.Hendrickx@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         John Hendrickx <John2.Hendrickx@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: Greek letters when exporting to Word (ods rtf)
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I did some experiments on this problem a little while ago. Andre's first solution worked for the RTF output itself but not for the TC field created using ODS proclabel. Here's (yet) another solution that does work in the TC field, as well as the table itself. The key is apparently include the RTF code directly in the program code, without using an escape character.

%let alpha_sym=%nrbquote( \field {\*\fldinst { SYMBOL \\u 945 } } );

title1 'Table 9999'; title2 "{Alpha &alpha_sym = .05}"; title3 "{\field {\*\fldinst { SYMBOL \\u 945 } }}";

ods listing close; ods rtf file='.\test.rtf'; ods proclabel "Table 9999: {Alpha &alpha_sym = .05}"; proc print data=sashelp.class noobs label contents=' '; run; ods rtf close; ods listing;

-- If you click the "Show/Hide ¶" button in Word, the TC field becomes visible and you can confirm it contains an alpha character.

Hope this helps,

John Hendrickx

Statistician Clinquest Europe BV, Oss - The Netherlands www.clinquest.com

On 9 jun, 11:05, wie...@INED.FR (Andre Wielki) wrote: > Finally > > better than the first solution with sas font and with the help of Duong Tran > HTH > Andre > > The code is a decimal one (not an hexadecimal) > see athttp://www.unicode.org/unicode/http://unicode.org/faq/font_keyboard.htmlhttp://www.alanwood.net/demos/symbol.html#s0370 *****here******** > > a solution structly working for ods rtf > *raw solution; > Ods listing close; > ods escapechar="^"; > Ods rtf file="d:\temp\greekutfR.rtf" style=minimal; > title1 "The ^R/RTF'\u945 ' and the ^R/RTF'\u969 ' of the rtf solution"; > title2 "Thanks to Duong Tran contribution PO06 Phuse2007 -Inline > Formatting- "; > title3 "the greek sigma ^R/RTF'\u931 ' or ^R/RTF'\u963 ' without > sasgraph"; > Proc print data=sashelp.class(obs=1); > Run; > ods rtf close; > ods listing; > > *more readable solution but require template applying to the specific > part of ods output (here systemtitle) > proc template; > define style utf; parent=styles.minimal; > style systemstitle from systemstitle/protectspecialchars=off; > end; > run; > Ods listing close; > Ods rtf file="d:\temp\greekutf.rtf" style=utf; > title1 "The \u945 and the \u969 of the rtf solution"; > title2 "Thanks to Duong Tran contribution PO06 Phuse2007 -Inline > Formatting- "; > title3 "the greek sigma \u931 or \u963 without sasgraph"; > Proc print data=sashelp.class(obs=1); > Run; > ods rtf close; > ods listing; > > Joakim Englund a écrit : > > > Dear SAS-L-ers, > > > How can I get Greek letters in tables and figures, when using "ods rtf" to > > export from SAS to word? In particular I would like to use SAS code to get > > the geek letter t, "tau" in the rtf output. > > > Kind Regards, > > Joakim Englund > > -- > André WIELKI > INED (Institut National d'Etudes Démographiques) > Service Informatique > 133 Boulevard Davout 75980 Paris Cedex 20 > mél : wie...@ined.fr tél : 33 (0) 1 56 06 21 54


Back to: Top of message | Previous page | Main SAS-L page