TEMPLATE Procedure: Creating a Style Template
Style Attribute Values
- color
-
is a string that identifies
a color. A color is defined in the following ways:
-
most of the color names that are
supported by
SAS/GRAPH. These names include the following:
-
a predefined SAS color (for example,
blue or VIYG)
-
a red/green/blue (RGB) value (for
example, CX0023FF)
-
a hue/light/saturation (HLS) value
(for example, H14E162D)
-
a gray-scale value (for example,
GRAYBB).
-
a red/green/blue transparency (RGBA)
value (for example, a98FB9880)
-
a cyan/magenta/yellow/black (CMYK)
value (for example, FFFFFF00)
Note: RGBA color mode is not supported
by Java devices. RGBA color mode is supported by ActiveX devices when
the output is used in Microsoft applications.
-
an RGB value with a leading pound
sign (#) rather than CX (for example, #0023FF).
-
one of the colors that exists in
the SAS session when the style is used:
Note: Use these colors only when
running SAS in the windowing environment.
-
an English description of an HLS.
Such descriptions use a combination of words to describe the lightness,
the saturation, and the hue (in that order). Use the Color Naming
System to form a color in the following ways:
-
combining a chromatic hue with
a lightness, a saturation, or both
-
combining the achromatic hue gray
with a lightness
-
combining the achromatic hue black
or white without qualifiers
Use the words in the
following table:
Hue/Light/Saturation (HLS) Values
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1Black and white cannot
be combined with a lightness or a saturation value.
|
2Gray cannot be combined
with a saturation value.
|
Combine these words
to form a wide variety of colors. Here are examples:
Note: The Output Delivery System
first tries to match a color with a
SAS/GRAPH color. Thus, although
brown and orange are interchangeable in the table, if you use them
as unmodified hues, then they are different. The reason for this is
that ODS interprets them as SAS colors, which are mapped to different
colors.
You can also specify
hues that are intermediate between two neighboring colors. To do so,
combine one of these adjectives with one of its neighboring colors:
- dimension
-
is a whole number,
a percentage, or a nonnegative number followed by one of these units
of measure:
Units of Measure for Dimension
|
|
|
Standard typesetting
measurement unit for width
|
|
Standard typesetting
measurement unit for height
|
|
|
|
|
|
|
Default:For the PRINTER destination, units of 1/150 of an inch
- font-definition
-
is the name of a font,
the font size, and font keywords. A font definition has this general
format:
("font-face-1 <…
, font-face-n>", font-size, keyword-list)
- "font-face"
-
specifies the name
of the font.
ODS styles can now
use new TrueType fonts. All Universal Printers and many
SAS/GRAPH
devices use the FreeType library to render TrueType fonts for output
in all of the operating environments that SAS software supports. In
addition, by default, many
SAS/GRAPH device drivers and all Universal
Printers generate output using ODS styles, and these ODS styles use
TrueType fonts. In addition to SAS Monospace and SAS Monospace Bold,
21 new TrueType fonts are made available when you install SAS:
-
five Latin fonts compatible with
Microsoft
-
eight multilingual Unicode fonts
-
eight monolingual Asian fonts
For more information
about the TrueType fonts, see the section "Printing with SAS" in
SAS Language Reference: Concepts.
Restriction:You must enclose multiple font-face in
quotation marks. If you specify only one font and if its name does
not include a space character, then omit the quotation marks.
Tip:If you specify more than one font, then the destination
device uses the first one that is installed on the system.
- font-size
-
specifies the size
of the font.
font-size is a
dimension or a number without units of measure. If you specify a dimension,
then specify a unit of measure. Without a unit of measure the number
becomes a size that is relative to all other font sizes in the HTML
document. For more information, see
dimension attribute value .
- keyword-list
-
specifies the font
weight, font style, and font width. Include one value for each, in
any order. This table shows the keywords to use:
Font Keywords
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1Few fonts honor these values.
|
- format
-
is a SAS format or
a user-defined format.
- integer | integer-list | integer-column-list
-
specifies a column
variable that contains integer values, or a dynamic variable that
refers to such a column variable.
- integer
-
specifies a single
integer.
- integer-list
-
specifies a sequence
of integer values, or a column variable that contains integer values,
or a dynamic variable that refers to such a column variable or to
a string.
- integer-column-list
-
specifies a sequence
of column variables, or a column variable that contains column variables,
or a dynamic variable that refers to such a column variable, or a
dynamic variable that refers to a string containing a list of column
variables. Values within the columns must be integers.
- style-reference
-
is a reference to an
attribute that is defined in the current style or in the parent style
(or beyond). The value used is the name of the style element followed
by the name of an attribute, in parentheses, within that element.
Style references have the following form:
style-attribute=target-style-element("target-style-attribute")
- style-attribute
-
specifies the name
of the style attribute.
- target-style-element
-
specifies the name
of the style element that contains the style attribute that you want
to reference.
- target-style-attribute
-
specifies the style
attribute with the value that you want to use.
Requirement:You must enclose target-style-attribute in
quotation marks if it is a user-supplied style attribute.
- "string"
-
is a quoted character
string.
- user-defined-format
-
specifies a format
created with the FORMAT procedure.
Restriction:user-defined-format can
only be specified for data cells.
Copyright © SAS Institute Inc. All rights reserved.