Skip to main content
You have permission to edit this article.
Edit

extend

<&extend:()> has three major functions.

  1. It can apply raw text attributes in addition to styles.
  2. It can apply both raw text attributes and styles through more than just the Start Tag and End Tag. It is this extension of where the attributes and styles are applied that gives the function its name.
  3. It allows attributes and styles to be applied from Start Tag up to End Tag without including End Tag.

extend Details

Title Details
Name extend
Generic Calls <&extend:()>|<&extend:(p1)>|<&extend:(p1,p2,p3,p4,p5)>
Sample Calls <&extend:()>|<&extend:(1,justification = Justification.CENTER_ALIGN)>|<&extend:(2,pointSize = 14,leading = 15)>
Parameters Unlimited and all are optional
p1 Mode. See separate table for the 4 modes
p2-pn Text Attributes. See separate documentation page on how to apply the text attributes.

extend Modes

There are 5 modes for the <&extend:()> function. The mode is specified as the first parameter. If no mode is specified then mode 0 (zero) is assumed. The <&bygraph:()> function is essentially the same as <&extend:(4)>.

Value Description
0 Locate all text with the styles and text attributes matching the Start Tag and apply the new styles and text attributes from the tag downward in the active text frame.
1 Locate all text with the styles and text attributes matching the Start Tag but apply the new styles and text attributes both above and below in the active text frame.
2 In this mode, the function does not worry about the existing styles and text attributes of the Start Tag, but it applies the new styles and text attributes up to, but NOT through the End Tag in the active text frame.
3 As mode 2 above, but apply the new styles and text attributes through the End Tag. Very similar to the normal functions of translator, except that text attributes can be applied in addition to the Paragraph Style and Character Style fields of the rule.
4 Limits all activity to a paragraph by paragraph basis. The active frame is searched from the bottom paragraph to the top of the story.

We want your feedback!

See something that needs updating or additional clarification? Want assistance with a topic that isn’t listed here? Please let us know!

At BLOX Digital we are dedicated to providing you the information you need to be successful when you need it.

Visit our feedback page to log in, submit a support ticket, and track the progress of your open requests.