Adding formatting to elements

You can add styling, which is a collection of formatting attributes, to the template elements to format your output documents.

Style options

Style precedence

Styles are applied in the following order:
  1. Template style sheets, if any
  2. Template styles, if any
  3. The formatting properties you define for the template elements, if any
If you find that a style is not being applied as expected, it might be for one of the following reasons:
  • The styles set in the formatting properties might be causing the styles that are applied earlier to be reset.
  • The name of the style might already exist in the Rational Publishing Engine default style sheet. For example, the Title style already exists. The Title style in the default style sheet overrides a style you create and name Title.
Tip: Avoid using more than one of the three methods for applying styles in a template. You might get mixed results in the output and have difficulty troubleshooting. When you must apply additional styling to an element that uses a particular style, apply the customization to a child element.

For example, you might want to change the color of a single paragraph that uses a style. Apply the style to the paragraph element and change the color property for the text element that the paragraph contains.


Feedback