proc template; define style concepts.style; style celldata / fontfamily="roman, arial" color=blue fontweight =bold "dark"=black; style cellemphasis from celldata / color=celldata("dark") borderspacing=10; end; run;
1 | Concepts.Style is a style. Styles describe how to display presentation aspects (color, font, font size, and so on) of the output for an entire SAS job. A style determines the overall appearance of the ODS documents that use it. Each style consists of style elements. Styles are created with the DEFINE STYLE Statement. New styles can be created independently or from an existing style. You can use the PARENT= Statement to create a new style from an existing style. |
2 | CellData
and CellEmphasis are style elements. A style
element is a collection of style attributes that apply to a particular
part of the output for a SAS program. For example, a style element
might contain instructions for the presentation of column headings
or for the presentation of the data inside table cells. Style elements
might also specify default colors and fonts for output that uses the
style. Style elements exist inside of styles and are defined by the STYLE Statement.
Note: For a list of the default
style elements used for HTML and markup languages and their inheritance,
see ODS Style Elements.
|
3 | The
following are style attribute-value pairs:
blue for the foreground color
of a table, and the FONTFAMILY= attribute specifies the values roman and arial as
the font to use. Style attributes exist within style elements and
can be supplied by SAS or be user-defined. FONTFAMILY=, COLOR=, FONTWEIGHT=,
and BORDERSPACING= are style attributes supplied by SAS. For a list
of style attributes supplied by SAS, see Style Attributes Tables . |
4 | "Dark"
is a user-defined style attribute. It specifies
to substitute the value black whenever
the value "dark" is specified.
|
5 | The
value celldata("dark") is a style
reference. Style attributes can be referenced with style
references. This style reference specifies that PROC TEMPLATE go to
the CellData style element and use the value that is specified for
the "dark" style attribute. See style-reference for more information about style references.
|