See what are cross-references and learn to use cross-reference pod in FrameMaker.
You can provide your readers with links from one document to another or from within one part of a document to another. In FrameMaker, you can create links using cross-references. Since cross-references in FrameMaker are based on markers, if the position of a cross-reference in the document changes, the link remains intact as long as the marker remains intact. For example, say you create a cross-reference to a heading in a document and then include or remove content before the heading. The cross-reference remains intact, even though the location of the destination header has changed.
To open the Cross-References pod:
From the View menu, choose Pods > Cross-References.
The Cross-References pod displays the list of cross-references in the current document.
To sort the list, click a column header in the list. The list is sorted by the header that you click.
To resize a column:
Hover the mouse between two columns until the cursor is a bi-directional arrow.
Hold down the left mouse button, drag, and release the mouse button when the column is sized as required.
Use the Cross-References pod to:
Search for cross-references in the list. The SAYT (search as you type) functionality works on all the columns in the list.
Insert a cross-reference in the document. See Insert cross-references.
Open the Cross-Reference dialog to edit a cross-reference. See Editing cross-references in a document.
Delete a selected cross-reference. See Deleting cross-references in a document.
Go to the selected cross-reference in the current document.
Convert the selected cross-reference to editable text.
Filter the cross-references on the basis of document or type of references. From the Document list, select from the following options:
Current
All Open Docs
Choose a document from the list
For the type of References, select from the following options:
All Cross-References
External Cross-References. See Deleting cross-references in a document.
Unresolved Cross-References. See Managing unresolved cross-references
Refresh the list of available cross-references.
Understand how to insert cross-reference in FrameMaker documents.
You can insert cross-reference in a document to point to another section of the current document or you can point to a section in another document. You can Insert cross-references in documents or Insert a cross-reference to an element in structured documents.
You use the Cross-Reference dialog to insert a cross-reference in a document.
In the Cross-Reference dialog:
Select the document containing the destination location for the cross-reference.
Navigate to the location of the cross-reference. If the cross-reference is located in another document, open the document and navigate to the selected paragraph tag.
Choose the type of content of the destination location:
To Insert a cross-reference to a Cross-Ref marker in a document
To Insert a cross-reference to an element in structured documents.
You can choose to list the elements in the document by the order in which the elements appear in the document. Alternatively, you can list the elements by the unique ID applied to each element.
Depending on the source type selected above, the list on the left below display the paragraph tags, cross-references, or element types in the selected document.
The list box on the right displays the specific paragraphs, cross-references, or elements.
Choose the element tag (for example XRef) to use for the cross-reference. For details, see Insert a cross-reference to an element in structured documents.
Choose a format to display the cross-reference in the current document. For details, see Managing cross-reference formats.
By default, FrameMaker provides a list of cross-reference formats. Choose this option to add, edit, or delete from this list. For details, see Managing cross-reference formats.
Displays the Convert Cross-Reference to Text dialog.
In this dialog, you can convert to editable text:
selected cross-references
cross-references with a specific Format
cross-references with a specific Element tag
all cross-references in the current document
Insert a cross-reference at the specific location. See Insert cross-references in documents. If you select an existing cross-reference, the Replace option is available to update the cross-reference. See Updating cross-references in a document.
In documents, you can insert a cross-reference to a paragraph (for example, headings) in a document or a text inset within the document.
You can also insert a cross-reference to a word or phrase in a document. In structured document, you can also insert cross-references to elements in the structured hierarchy.
Place the insertion point at the location in the current document where you want to insert the cross-reference.
Click Insert on the Cross-References pod.
Alternatively, you can choose Cross-Reference from the Insert menu.
The Cross-Reference dialog is displayed.
In the Document drop-down list, select the document containing the destination paragraph.
Select the paragraph type and the specific paragraph.
From the Format list, choose the format to display the cross-reference.
For example, the See Heading & Page format displays as:
See “Creating cross-references” on page 1
Click Insert.
If you move the paragraph from one document to another, FrameMaker uses the marker Resolve unresolved cross-references in a document.
If you have a document that includes a text inset reference to another document, you can insert a cross-reference to paragraphs that are contained in the text inset. If a user follows the cross-reference link in the main document, the user is directed to the text inset within the document itself.
Place the insertion point at the location in the current document where you want to insert the cross-reference.
Click Insert on the Cross-References pod.
Alternatively, you can choose Cross-Reference from the Insert menu.
The Cross-Reference dialog is displayed.
In the Document drop-down list, select the document that is referenced in the text inset that contains the destination paragraph.
Select the paragraph type and the specific paragraph.
From the Format list, choose the format to display the cross-reference.
For example, the See Heading & Page format displays:
See “Creating cross-references” on page 1
Click Insert.
If you insert a paragraph cross-reference to a text inset, the cross-reference marker is sometimes lost when the text inset is updated. To prevent the marker from being lost, first insert a cross-reference to the paragraph in the text inset’s source document.
Open the source of the inset by double-clicking the inset and then clicking Open Source from the Text Inset Properties pod.
Insert a cross-reference to the paragraph anywhere in the source document.
Delete the cross-reference text. The marker remains.
Save the source document, and then in the document that contains the text inset, update the text inset by choosing Edit > Update References.
Insert a spot cross-reference, this time in the document that contains the inset. The cross-reference uses the marker in the updated inset.
You can insert a cross-reference to any location in a document by using the Cross-Ref type marker. Using the Cross-Ref marker, you can link to a word or phrase in a paragraph or to an anchored frame. You even can link to the text in a cell in a table. You can link to any location in a document where you can insert a Cross-Ref marker.
Place the insertion point at the destination location and open the Marker dialog (Insert > Marker).
In the Marker dialog, choose the Cross-Ref marker type.
Specify a marker text and click New Marker.
The marker text can be any name that you specify for the name. You will select this in the Cross-Reference dialog when you insert the cross-reference.
A new marker is inserted at the destination location.
Place the insertion point at the location to create the cross-reference.
Open the Cross-Reference dialog.
In the Source Type drop-down list, choose Cross-Reference Markers.
In the Maker Type list, choose Cross-Ref.
In the Cross-References Markers list, choose the marker (by name) that you created in Steps 1 through 3.
To insert the cross-reference perform the remainder of the steps as per the procedure in Insert a cross-reference to a paragraph in a document.
In structured document, besides cross-references to paragraphs and Cross-ref markers, you can also insert cross-references to elements in the current or other structured documents.
Place the insertion point at the location in the current document where you want to insert the cross-references.
Click Insert on the Cross-References pod.
Alternatively, you can choose Cross-Reference from the Insert menu.
The Insert Cross Reference dialog is displayed.
Select the DITA Element to use for inserting the cross-reference.
In the Target area, choose whether the File, Key space, or Both contains the destination element.
Choose the target element from the list.
The list provides information about the element type, ID, and content where the element is used.
In the Display area, either provide the text for the cross-reference or choose the format from the drop-down list.
For example, the See_Title_and_Page format displays:
See “Creating cross-references” on page 1
Click Insert.
When you insert a cross-reference to an element in a structured document, FrameMaker user the ID and IDRef attributes of the destination and source elements, respectively.
If you insert a cross-reference to an element whose ID attribute is not currently assigned a value, FrameMaker assigns a unique value to the attribute. However, if the ID attribute is not read-only, you can manually set the attribute value.
You need to ensure that the destination element has the ID attribute defined. Else, you need to use another element or the structured app definition will need to be changed.
Learn how to manage, edit, delete and update cross-references in FrameMaker, work with cross-reference formats and identify and manage unresolved cross-references.
You can edit (see Editing cross-references in a document) or delete (see Deleting cross-references in a document existing cross-references in a document. You can also, edit the cross-reference formats to change the way the cross-reference displays in the document output. For example, you can choose to only display the heading text, and not include the page number in the cross-reference. For details, see Managing cross-reference formats. You can update the cross-references in a document. For example, if the destination content is changed. See Updating cross-references in a document. Also, changes in the destination content can cause the cross-references in the current document to be broken. To identify and handle unresolved cross-references, see Managing unresolved cross-references.
You can change any of the properties associated with an existing cross-reference, including the destination of the cross-reference, using the Cross-Reference dialog.
For an existing cross-reference, double-click the cross-reference in the document.
Alternatively, open the Cross-References pod (
), select the cross-reference in the pod and click Edit.The Cross-Reference dialog is displayed.
In the Cross-Reference dialog, you can update:
The destination document and paragraph, cross-reference, or element
Element Tag - If the cross-reference is an element in a structured document
The format of the cross-reference
Click Edit Format to open the Edit Cross-Reference Format dialog. Use this dialog to add, edit, or delete cross-reference formats. For details, see Managing cross-reference formats.
Convert the cross-references in the document to text.
To update the cross-reference, click Replace.
If you delete a cross-reference in a document, the cross-reference as well as the associated text is deleted. For example, if the following cross-reference is inserted in a document:
See “Creating cross-references” on page 1
If you delete the cross-reference, the cross-reference is removed from the document catalog and the text “See “Creating cross-references” on page 1” is deleted from the document.
Open the Cross-References pod (
).Select the cross-reference in the pod and click Delete.
You can also, select the cross-reference in the document and press the Delete key on the keyboard. However, in this case, you might inadvertently also delete any adjoining text.
When you insert a cross-reference in a document, you need to select a format to associated with the document.
For example, the See Heading & Page format displays:
See “Creating cross-references” on page 1
The Format drop-down list display the available formats. You can choose any of the formats when you insert a cross-reference in a document. Alternatively, you can edit these formats or create new formats. Cross-reference formats are specific to a FrameMaker document. However, you can use the updated formats in another document, by, Importing cross-reference formats.
Use the Edit Cross-Reference Format dialog to create, edit, or delete cross-reference formats in the current document.
Use the Edit Cross-Reference dialog to:
Update the name of an existing format or specify a name for a new format.
Define the cross-reference format.
To define a format, you can enter any fixed text - for example, Figure that will display as you specify the text in the definition. You can also use the definitions Building Blocks list to display contextual information.
For example, the default Heading & Page format is defined as:
“<$paratext>” on page\ <$pagenum>
The building block parts of the definition are included in angle brackets (<>) and preceded by a dollar ($) sign. When FrameMaker encounters this nomenclature in a cross-reference format, it interprets this according to the building block definitions. In the above example, FrameMaker interprets:
Paragraph text of the cross-referenced paragraph
Page number of the cross-referenced paragraph
The resulting cross-reference is displayed as:
“Inserting cross-references” on page 25
For details, see Cross-reference format building blocks.
If the definition contains characters that are not as per the building block nomenclature, these characters are displayed as they are written in the definition. Say in the above example, you defined the Heading and Page format as:
“<$paratext>” on page\ <$PageNum>
The resulting cross-reference is displayed as:
“Inserting cross-references” on page <$PageNum>
Create a format. See Creating cross-reference formats.
Edit an existing format. See Editing cross-reference formats.
Delete an existing format. See Deleting cross-reference formats.
You can create cross-reference formats and then use these in the current document. To use the new formats in another document, see Importing cross-reference formats.
In the Edit Cross-Reference Format dialog, enter a name the cross-reference in the Name field.
In the Definition field, define the cross-reference format.
To define the format, you can enter any text (letters, characters, or numbers) that display as they are in the cross-reference.
Use the building blocks to display contextual information in the cross-reference.
To add a building block to the definition, place the insertion point at the appropriate location and click the definition in the Building Blocks list.
You can also, type the building block definition by including the definition in angle brackets (<>) and preceding the definition by a dollar ($) sign.
For details, see Cross-reference format building blocks.
To create a cross-reference format, click Add.
You can change existing cross-reference formats and then use these in the current document. To use the updated formats in another document, see Importing cross-reference formats.
In the Edit Cross-Reference Format dialog, select an existing format from the Formats list.
In the Definition field, edit the cross-reference format definition.
You can enter any text (letters, characters, or numbers) that display as they are in the cross-reference.
Use the building blocks to display contextual information in the cross-reference.
To add a building block to the definition, place the insertion point at the appropriate location and click the definition in the Building Blocks list.
You can also, type the building block definition by including the definition in angle brackets (<>) and preceding the definition by a dollar ($) sign.
For details, see Cross-reference format building blocks.
Click Change and to update the selected cross-reference format, click Done.
The Update Cross-References dialog is displayed.
If you update the format definition, you need to choose to update the references:
In the current document
In all open documents that are referenced by the cross-references in the current document
In all documents that are referenced by the cross-references in the current document
Or click Cancel to not reflect the format changes in any cross-references.
You can choose to delete cross-reference formats that are not used in the document. You can also choose to delete cross-reference formats that are currently used. If you delete a cross-reference format that is used in the current document, you are prompted that all cross-references that use the format will be converted to editable text.
In the Edit Cross-Reference Format dialog, select an existing format from the Formats list.
Click Delete and to remove the selected cross-reference format from the document catalog, click Done.
You are prompted to change all cross-references that use the deleted format to editable text.
The cross-reference formats that you add or edit are available for use in the current document. To make these formats available in other documents you need to import the formats.
Open the document containing the cross-reference format to be imported into other documents.
Open the document into which you need to import the formats.
Ensure that the document into which you need to import the formats is currently selected.
Open Import Formats dialog (
).In the Import from Document drop-down list, choose the source document and ensure that only the Cross-Reference Formats check box is checked.
You can use the Deselect All button to first uncheck all the boxes and then check Cross-Reference Formats check box.
To import the cross-reference formats, click Import.
When you add or edit cross-reference format, you can choose to use building blocks to display contextual information in the cross-reference. The following sections describe the building blocks that you can use to create cross-reference formats.
The following building blocks provide information about the source file of the document containing the cross-reference:
Building block |
Description |
---|---|
<$filename> |
The name of the source document |
<$fullfilename> |
The full path of the source document |
<$volnum> |
The volume number of the document that includes the source paragraph |
<$chapnum> |
The chapter number of the document that includes the source paragraph |
The following building blocks provide information about the source paragraph referenced by the cross-reference:
Building block |
Description |
---|---|
<$pagenum> |
The page number of the source paragraph |
<$paratext> |
The text of the source paragraph, excluding its autonumber (If the character format of text in the source paragraph was changed by applying a Character Catalog format, the font family, superscript, and subscript properties are preserved in the text of the cross-reference.) |
<$paratag> |
The tag of the source paragraph |
<$paranum> |
The source paragraph’s entire autonumber, including any text in the autonumber format |
<$paranumonly> |
The source paragraph’s autonumber counters, including any characters between them |
A cross-reference to a subsection often identifies the section that contains it. For example, this cross-reference to a subheading identifies the main heading under which it is found: See “Types of Plate Boundaries” in “Plate Tectonics.” In the example, Types of Plate Boundaries is the source paragraph, and Plate Tectonics is the main heading under which the source paragraph appears.
In each of the building blocks, replace tag (in brackets) with the tag of the paragraph to which you want to refer, but don’t delete the brackets. For example, if you want to refer to the text of the preceding paragraph tagged Head1, use <$paratext[Head1]>.
Building block |
Description |
---|---|
<$pagenum[tag]> |
The page number of the preceding paragraph with the specified tag |
<$paratext[tag]> |
The text of the preceding paragraph with the specified tag, excluding its autonumber (If the character format of text in the source paragraph was changed by applying a Character Catalog format, the font family, superscript, and subscript properties are preserved in the text of the cross-reference.) |
<$paratag[tag]> |
The tag of the preceding paragraph with the specified tag |
<$paranum[tag]> |
The entire autonumber of the preceding paragraph with the specified tag, including any text in the autonumber format |
<$paranumonly[tag]> |
The autonumber counters of the preceding paragraph with the specified tag, including any characters between them |
Use the following building blocks to create cross-reference formats that refer to structured document elements
Building block |
Description |
---|---|
<$elempagenum> |
The page number of the source element |
<$elemtext> |
The text of the source element (up to the first paragraph break), excluding its autonumber, but including any prefix and suffix specified in the element definition |
<$elemtextonly> |
The text of the source element (up to the first paragraph break), excluding its autonumber and any prefix and suffix specified in the element definition |
<$elemtag> |
The tag of the source element |
<$elemparanum> |
The entire autonumber of the source element’s first paragraph (or of the paragraph containing the source element), including any text in the autonumber format |
<$elemparanumonly> |
The autonumber counters of the source element’s first paragraph (or of the paragraph containing the source element), including any characters between the counters |
<$attribute[name]> |
The value of the attribute with the specified name (or, if no value is specified, the default value) |
If the source content of cross-references is updated, you need to update the cross-references in the current document. For example, if you create a paragraph cross-reference to a heading and then change the heading text, you will need to update the cross-reference in the document containing the cross-reference.
The cross-references in the document are updated every time the document is opened. Alternatively, you can manually update the references in an already opened document. Also, you can prevent FrameMaker from updating the cross-references in a document every time it is opened.
From the Edit menu, choose Update References.
In the Update References dialog, check All Cross-References and click Update.
If FrameMaker cannot resolve the cross-references, the Update Unresolved cross-references dialog box appears. For details on unresolved cross-references, see Managing unresolved cross-references.
By default, FrameMaker updates the cross-references in a document every time the document is opened. However, if a document contains a large number of cross-references, the validation for the cross-references in the document can cause a sufficient delay in the document load time.
To stop FrameMaker from updating cross-references when a document is opened:
Choose
.In the Update References dialog, open the Commands drop-down in the upper right corner and select Suppress Automatic Updating.
In the Suppress Automatic Reference Updating dialog, check Suppress Automatic Updating of All Cross-References and click Set.
If the source of a cross-reference is changed and FrameMaker is unable to update the reference in the destination, FrameMaker reports the cross-reference as unresolved. This can happen, for example, if the source document or content is deleted.
FrameMaker reports a cross-reference as unresolved if:
The marker or source of the cross-reference has been moved to a different file, or the file itself has been moved or renamed.
The source has been deleted, or if the source is a paragraph or Cross-Ref marker, the marker indicating the source has been deleted.
The file containing the marker is currently open by another user.
The value for the source element ID attribute or the cross-reference
ID Reference attribute (@IDRef
) has been changed
or deleted.
You can view the list of unresolved cross-references in a document in the:
Open the Cross-References pod ( ).
In the References drop-down list, choose Unresolved Cross-References.
The list displays the unresolved cross-references. Use the Update References dialog to Resolve unresolved cross-references in a document.
You can also generate a list of unresolved cross-references in a document:
Choose
.Choose to create the list as standalone index of references or include the index in a new book.
Move the Unresolved Cross-Refs to the Include References list and click Set.
The generated list includes the page number of each unresolved cross-reference and indicates whether each missing source is internal (in the current document) or external (in a different document). The list includes additional information – for example, the tag and text of the source paragraph (unstructured documents), or the ID, element tag, and text of the source element (structured documents). For Cross-Ref marker cross-references, the list includes the marker text.
To resolve unresolved external cross-references in a document:
Open the Update References dialog ( ).
Click the Commands drop-down list and select Update Unresolved Cross-References.
Update Unresolved Cross-References dialog is displayed.
In the Total of Unresolved cross-references scroll list, select the file that previously contained the source of the unresolved cross-reference. The text below the scroll list indicates how many cross-references to the selected file are unresolved.
Navigate to and select the alternate document containing the cross-reference.
To resolve cross-references to any other file listed in the Total of Unresolved cross-references scroll list, repeat steps 3 and 4. Then click Done.
To resolve cross-references to Cross-Ref markers, you need to re-create the Cross-Ref marker and the cross-reference. For details, see Insert a cross-reference to a Cross-Ref marker in a document.
Similarly, to resolve cross-references to elements in structured documents, you need to re-create the cross-reference. For details, see Insert a cross-reference to an element in structured documents.