All-Contexts Rules - Adobe 65030365 - FrameMaker - PC Developer's Manual

Structure application developer's guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

10
W r i t i n g c o n t e x t - d e p e n d e n t f o r m a t r u l e s
defines contexts or levels, it can have separate if, else/if, and else clauses for different
possibilities.
Each "in all contexts" rule or if, else/if, and else clause specifies formatting changes. The
formatting changes can be a list of specific properties; or a reference to a different
paragraph format, a character format (if you are formatting the element as a text range),
or a list of properties stored elsewhere in the EDD.
For example:
Element (Container): Head
General rule: <TEXT>
Text format rules
A format rule or clause can also include a context label to help end users select elements
when inserting cross-references or preparing a table of contents or other generated list. An
element can have more than one format rule, and format rules can be nested inside one
another. The format rules are numbered automatically.
This section describes the context specifications and context labels in format rules. For a
summary of the formatting changes available, see "Defining the formatting changes in a
rule" on page 143.
An element's format rules or paragraph format can also be inherited from an ancestor. For
information on this, see "How elements inherit formatting information" on page 127.

All-contexts rules

A format rule can specify a formatting change that applies to an element in all contexts in
which it can occur. To write an all-context format rule, insert an AllContextsRule
element, and then define the formatting changes for the rule.
In this example, the text in a TableHead element is in 14-pt boldface no matter where the
element occurs in a document:
Structure Application Developer's Guide
1. In all contexts.
Default font properties
Weight: Bold
2. If context is: Section < Section
Numbering properties
Autonumber format: <n>.<n+>\t
Else, if context is: Section
Numbering properties
Autonumber format: <n+>\t
A format rule clause has a
context specification ...
... and formatting changes
for that context.
133

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents