[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

PAGEREF

Syntax:

PAGEREF field-argument [ switches ]

Description: Inserts the number of the page containing the bookmark specified by text in field-argument for a cross-reference.

Field Value: The number of the page containing the bookmark.

Switches: Zero or one of the general-formatting-switches, zero or one of the numeric-formatting-switches, and zero or more of the following field-specific-switches.

\h

Creates a hyperlink to the bookmarked paragraph.

\p

Causes the field to display its position relative to the source bookmark. If the PAGEREF field is on the same page as the bookmark, it omits "on page #" and returns "above" or "below" only. If the PAGEREF field is not on the same page as the bookmark, the string "on page #" is used.

 

[Example: Consider the case in which a bookmark called Worldpop1990 marks the table containing figures for 1990. When the field

The world population in 1991 was 5 billion; for 1990 figures,
see the table { PAGEREF Worldpop1990 \p }.

is updated, the position of the table is inserted in place of the field. The result is one of the following::

… see the table above.
… see the table below.
… see the table on page 27.

end example]