Insert anchored frames in structured documents

Introduction

In a structured document, a graphic element provides an anchored frame for holding graphic objects. The frame is anchored to a specific location in text. As you edit the text, the frame and its contents move in the document along with the text.

When inserting a graphic element, you specify where you want to anchor the element’s frame. For example, you might anchor the frame in a <p> element (and the graphic will be a child element to the <p>), or you might anchor it in a <section> element (as a sibling to <p> and other elements in the <section>). It depends on how the elements are defined for your document. The formatting properties you set are independent of the element’s format rules, not overrides to them.

In the document window, an anchor symbol Anchor symbol appears at the anchor location in text when View > Text Symbols is turned on. The frame can appear in various positions on the page—including in-line with text, next to or below a paragraph, or in a page margin. You specify an anchoring position relative to the anchor symbol.

Figure 1. Several positions for anchored frames
Positionsforanchoredframesinstructureddocuments

A graphic element appears in the document’s structure where it is anchored to text, regardless of the frame’s position on the page. In the Structure View, the element is represented by a square-cornered bubble with the snippet <GRAPHIC>.

Figure 2. Graphic element
Graphic elementinthedocument’sstructure

Insert an anchored frame element

  1. Click where you want to anchor the frame.

  2. Select an anchored frame element in the Elements catalog and click Insert.

    You can also use Insert > Anchored Frame to insert an element. If more than one frame element is available, choose the one you want from the Element Tag drop-down list in the Anchored Frame panel.

  3. Choose the frame’s anchoring position and specify its size and formatting properties. The properties that appear in the dialog box depend on the anchoring position you choose. See Inline anchored frames for details.

  4. Click New Frame. The anchored frame appears in the document window, with an anchor symbol Anchorsymbol at the insertion point when View > Text Symbols is turned on. A bubble with the text snippet <GRAPHIC> appears in the Structure View.

If no anchored frame element is available at the location you want, you might use an invalid element. After inserting the element, talk to your developer about making the element valid at this location.

Use an invalid anchored frame element

Do one of the following: