You can have references to other pages that occur randomly within
the text of the document, with fixed formulations, automatically
linked to the page(s) they reference. To do so use the Link
Cross-Document References To Target Pages
menu item under the
Outline And Link Automation
menu item under the Tools menu.
Enter the page range(s) you would like to be analysed and linked and enter a regular expression that describes the formulations that contain references to other pages in the document. The element(s) of the formulation that indicate the page reference need to be enclosed in a capture group (= enclosed in parentheses). Additional capture groups may be used for other elements, as needed to construct an adequate regular expression.
Expressions that contain exactly two capture groups may be defined with one of the capture groups indicating the location on the target page to link to. You can specify whether the first or the last capture group indicates the location. See the first example.
When Link Whole Match is selected, the complete match is linked, rather than only the page number.
Example regular expressions:
section\s+([a-zA-Z0-9\.]+)\s+on\s+page\s+([0-9]+)
Finds occurrences like:
section 5.1.4 on page 27
In addition, if Location On Target Page is set to Location First,
it will link to the first occurrence of the text 5.1.4
on page
27.
on page ([0-9]+)
Finds occurrences like:
on page 24
(see|on)\s+page[s]?\s+([0-9]+)\s*(,|and|through)?\s*([0-9]+)?\s*(,|and|through)? \s*([0-9]+)?\s*(,|and|through)?\s*([0-9]+)?
Finds and links occurrences like:
see page 12
on page 15
see pages 61, 119
on pages 40 through 43 and 167 through 170
on pages 108 and 123 through 124
see pages 148, 150 and 157
For more information on regular expression syntax see pages 32-37.