• Print  |
  • Feedback  |

TEMPLATE Procedure: Text Statements (Experimental)

Text Statements and the TEMPLATE Procedure


Entries Must Be Explicitly Associated with Styles

Usually, the association between a graphical feature and its corresponding style element is automatic. No syntax is required to map a feature to a particular style element. The one exception is for entries. An entry is text that is inside a graph by a text statement.

Entries place text inside a graph. Because all text statements in a layout are assigned the same default text style, achieving variation in the entry requires you to change the style in order to obtain a desired effect. For example, in the following figure, the entry title "Statistics" uses a larger font than the layout area beneath it, and also adds a filled background behind the text. Therefore, the text statement defining this title requires options to change the font size and the background.

Entry with Styles

[Entry with Styles]

The preferred way for changing the default appearance of the entry is to assign an attribute to a style element or an attribute, as shown in the following example:

 entry "Statistics/style=GraphLabelText
                    cellbackground=GraphBackground;  

Here, the style for the text of the string "Statistic" is specified to match the style of the label text that is used by the style that is assigned to the graph. Similarly, the cell background color is specified to match the style of the graph background color.

For information about the interaction between ODS style definitions and ODS statistical graphics, see "ODS Statistical Graphics and ODS Styles: Usage and Reference (Experimental)" at http://support.sas.com/documentation/onlinedoc/base/.


Previous Page | Next Page | Top of Page