You can
build strings with subscripts or superscripts using the {SUB "
string" } or {SUP "
string" } text commands. You can also use dynamics or macro variables
for the
string portion of the
text command.
entryfootnote "R" {sup "2"} "=.457";
entryfootnote "for the H" {sub "2"} "O Regression" ;
Another way to form text is to use the {UNICODE "
hex-value"x } text command. For fonts that support
Unicode code points, you can use the following syntax to render the
glyph (character) corresponding to any Unicode value:
entryfootnote {unicode "03B1"x} "=.05" ;
In the
code, the
"03B1"x
is the hexadecimal code
point value for the lowercase Greek letter alpha. Because Greek letters
and some other statistical symbols are so common in statistical graphics,
keyword short cuts to produce them have been added to GTL syntax.
So another way of indicating
"03B1"x
is
entryfootnote {unicode alpha} "=.05" ;
Additionally,
any Unicode glyph for currency, punctuation, arrows, fractions and
mathematical operators, symbols, and dingbats can be used. Fonts such
as Arial (comparable to SAS-supplied Albany AMT) have many, but not
all, Unicode code points available, and sometimes a more complete
Unicode font such as Arial Unicode MS (or SAS-supplied Monotype Sans
WT J) needs to be specified. ODS styles have a style element named
GraphUnicodeText that can be safely used for rendering any unicode
characters. The following example uses the GraphUnicodeText style
element for rendering a bar over the X:
entry "X"{unicode bar}"=6.78" / textattrs=GraphUnicodeText;