Expand/Collapse Markers

Expand and collapse markers of specified types to allow editing directly in the FrameMaker document.

Select the marker type then choose the Expand or Collapse button.



When markers are expanded in an unstructured document, the original marker is deleted and the text of the marker is inserted and formatted with an overline and underline, and is blue in color. For structured documents, the marker element remains but is wrapped in a new element named "_PT-<marker-name>". Each marker entry is delimited with "[+]" symbols at its beginning and end. You can modify the text between the "[+]" symbols as needed. When you are done editing, use the Collapse command to regenerate the markers with the new text.

Important: Working with expanded markers can be tricky. Please keep the following items in mind:

To expand markers in structured documents

If you are working in a structured document (with structured markers), when expanded the original marker element and the inserted text are wrapped in a special element named "_PT-<marker-name>". While the markers are expanded, do not edit the text of the marker element, it will be replaced when the markers are collapsed.

Note: Unless you add the "_PT-<marker-name>" elements to your data model (EDD and DTD) the document will be invalid while the markers are expanded. This is not a problem, just something to be aware of.

To customize the display of expanded marker text

The formatting of the expanded marker text is controlled by named objects that are added to the document when the Expand command is issued. If these named objects already exist, the existing definitions are used. To control the formatting of the expanded text, you should define these objects prior to using the command.

Error messages

N expanded markers are missing their beginning or ending variables.
This can happen when you make edits to an expanded marker and you change or remove the character formatting in the marker text. The Collapse command will flag the problem text with the "~PT:ERROR" character style (bold red). Just retag the text and the beginning/ending symbols ("[+]") with the proper character style for the associated marker (for example, "~PT-Index" for an Index marker), then run the Collapse command again.