Context Specifications For Object Format Rules; 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

12
C o n t e x t s p e c i f i c a t i o n s f o r o b j e c t f o r m a t r u l e s
The end user can change a marker type, cross-reference format, or other property (except
for a system variable) at any time, and the change is not considered to be a format rule
override. If the user re-imports element definitions and turns on "Remove Format Rule
Overrides," the properties remain as the user has set them. An end user cannot change the
variable in a system variable element.

Context specifications for object format rules

An object format rule can apply to all contexts in which the element occurs, or it can define
particular contexts or the number of levels deep the element is nested in an ancestor. If the
rule defines contexts or levels, it can have separate if, else/if, and else clauses for different
possibilities. Each "in all contexts" rule and each if, else/if, and else clause specifies a
formatting property.
For example:
Element (Table): Table
General rule: Title, Heading?, Body
Initial table format
A format rule or clause can have another format rule nested inside it, and can also include
a context label to help end users select elements when inserting cross-references or
preparing a generated list.
In most respects, the context specifications for object format rules are the same as they are
for text format rules. This section describes the rules for "in all contexts" and the clauses
for particular contexts, which are the specifications you're most likely to use in object
formatting. For information on nested rules, context labels, and count statements in level
rules, see Chapter 10, "Text Format Rules for Containers, Tables, and Footnotes."

All-contexts rules

A format rule can specify a format 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, an InLineEquation element uses the Small equation size no matter
where the element occurs in a document:
Element (Equation): InLineEquation
Initial equation size
Structure Application Developer's Guide
1. If context is: * < Chapter
Table format: StandardTable
Else, if context is: * < Appendix
Table format: SyntaxTable
1. In all contexts.
Use equation size: Small
A format rule clause has a
context specification...
...and a formatting property
for that context.
187

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents