Using cross-reference formats



Several cross-reference formats appear in the New Cross-Reference dialog box by default. You can edit these formats, delete them, or create your own.

Note: If you’ve deleted or edited cross-reference formats in your document and want to return them to the default formats, you can choose Load Cross-Reference Formats from the panel menu and choose a document with unedited formats. You can also synchronize cross-reference formats in a book.

For a video tutorial on editing cross-reference formats, see www.adobe.com/go/lrvid4024_id.

Create or edit cross-reference formats

Unlike other presets, cross-reference formats can be edited or deleted. When you edit a cross-reference format, any source cross-reference that uses that format is automatically updated.

  1. Do any of the following:
    • Choose Define Cross-Reference Formats from the Hyperlinks panel menu.

    • While creating or editing a cross-reference, click the Create Or Edit Cross-Reference Formats button .

  2. In the Cross-Reference Formats dialog box, do one of the following:
    • To edit a format, select the format on the left.

    • To create a format, select a format to base the new format on, and then click the Create Format button . This creates a duplicate of the selected format.

  3. For Name, specify the name of the format.
  4. In the Definition text box, add or remove any text as needed. Click the Building Block icon  to insert building blocks from a menu. Click the Special Characters icon  to select dashes, spaces, quotation marks, and other special characters.
  5. To apply a character style to the entire cross-reference, select Character Style For Cross-Reference, and then choose or create the character style from the menu.

    You can also use the Character Style building block to apply a character style to text within the cross-reference.

  6. Click Save to save the changes. Click OK when finished.

Cross-reference building blocks

Building block

What it does

Example

Page Number

Inserts the page number.

on page <pageNum/>

on page 23

Paragraph Number

Inserts the paragraph number in a cross-reference to a numbered list.

See <paraNum/>

See 1

In this example, only “1” is used from the paragraph, “1. Animals.”

Paragraph Text

Inserts the paragraph text without the paragraph number in a cross-reference to a numbered list.

See “<paraText/>”

See “Animals”

In this example, only “Animals” is used from the paragraph, “1. Animals.”

Full Paragraph

Inserts the entire paragraph, including paragraph number and paragraph text.

See “<fullPara/>”

See “1. Animals”

Partial Paragraph

Lets you create a cross-reference to the first part of a paragraph, up to the specified delimiter, such as a colon or em dash.

See <fullPara delim=”:” includeDelim=”false”/>

See Chapter 7

In this example, only “Chapter 7” is used from the title “Chapter 7: Dogs and Cats.”

Specify the delimiter (such as : in this example), and indicate whether the delimiter is excluded (“false” or “0”) or included (“true” or “1”) in the source cross-reference.

See Creating cross-references to partial paragraphs.

Text Anchor Name

Inserts the text anchor name. You can create text anchors by choosing New Hyperlink Destination from the Hyperlinks panel menu.

See <txtAnchrName/>

See Figure 1

Chapter Number

Inserts the chapter number.

in chapter <chapNum/>

in chapter 3

File Name

Inserts the filename of the destination document.

in <fileName/>

in newsletter.indd

Character Style

Applies a character style to text within a cross-reference.

See <cs name=”bold”><fullPara/></cs> on page <pageNum>

See Animals on page 23.

Specify the character style name, and include the text you want to apply the character style to between the <cs name=””> and </cs> tags.

See Apply character styles within a cross-reference.

Creating cross-references to partial paragraphs

You can design cross-reference formats to include only the first part of a paragraph. For example, if you have headings in your document that look like, “Chapter 7—Granada to Barcelona,” you can create a cross-reference that refers only to “Chapter 7.”

Cross-reference to partial paragraph

A.
The cross-reference source ends at an em dash (^_)

B.
“false” excludes the em dash from the source

When you insert the Partial Paragraph building block, you must do two things. First, specify the delimiter between the quotation marks. The delimiter is the character that ends the paragraph. Common delimiters include colons (Chapter 7: Granada), periods (Chapter 7. Granada), and dashes (Chapter 7—Granada). To insert special characters such as em dashes (^_), em spaces (^m), and bullet characters (^8), choose an option from the menu that appears when you click the Special Characters icon.

Second, indicate whether the delimiter character is excluded (Chapter 7) or included (Chapter 7—). Use includeDelim=”false” to exclude the delimiter and includeDelim=”true” to include the delimiter. Instead of “false” or “true,” you can use “0” or “1,” respectively.

Apply character styles within a cross-reference

If you want to emphasize a section of text within a cross-reference, you can use the Character Style building block. This building block consists of two tags. The <cs name=”stylename”> tag indicates which style is applied, and the </cs> tag ends the character style. Any text or building blocks between these tags is formatted in the specified style.

Applying a character style to a section of the cross-reference

A.
This tag applies a character style named “Red.”

B.
This tag ends the character style formatting.

C.
A character style named “Bold” is applied to the rest of the cross-reference source.

  1. Create the character style you want to use.
  2. In the Cross-Reference Formats dialog box, create or edit the format you want to apply.
  3. Under Definition, select the text and building blocks to which you want to apply the character style.
  4. Choose Character Style from the menu to the right of the definition list.
  5. Type the name of the character style between the quotation marks exactly as it appears in the Character Styles panel.

    Style names are case sensitive. If the character style is in a group, type the name of the group followed by a colon before the character style, such as Style Group 1: Red.

  6. Click Save to save the format, and then click OK.

Load (import) cross-reference formats

When you load cross-reference formats from another document, the incoming formats replace any existing formats that share the same name.

In InCopy, you can import cross-reference formats only in standalone documents. You cannot import formats from an InCopy document into an InDesign document. If the new or modified format in InCopy conflicts with a format in the InDesign document when the story is checked in, the InDesign format takes precedence.

  1. Choose Load Cross-Reference Formats from the Hyperlinks panel menu.
  2. Double-click the document containing the cross-reference formats you want to import.

You can also share cross-reference formats across documents by synchronizing a book.

Delete cross-reference formats

You cannot delete a cross-reference format that has been applied to cross-references in the document.

  1. In the Cross-Reference Formats dialog box, select the format you want to delete.
  2. Click the Delete Format button .