Writer Guide

To insert a cross-reference to the last page in the header or footer
where you want to refer to the total number of pages:
1) Position the cursor at the desired locationfor example after the
space added after of in the header or footer, as in page xx of yy.
2) Choose Insert > Cross-reference.
3) On the Cross-references page of the Fields dialog box, select
Bookmarks in the Type column and LastPage in the Selection
column. LastPage now appears in the Name box.
4) In the Insert Reference to box, select As page style. Click Insert.
Note
Do not delete the bookmark at the end of the document. If you
do, the cross-reference will not work.
If a field, such as a cross-reference, does not automatically
update, select the text containing the field and press F9.
Figure 146: Inserting a cross-reference to a bookmark
on the last page of a document
160 OpenOffice.org 3.x Writer Guide
Free eBook Edition