Writer Guide

Solving the page count problem
Suppose you know exactly how many pages are not to be included in
the page count. (You want one page to be excluded in the page count
for the following example.)
Instead of inserting a
Page Count
field, you can do the following:
1) Position the cursor where you want the page count to appear.
2) Press
F2
to open the formula bar, just above the horizontal ruler
in the main Writer window (see Figure 116).
3) After the equal sign, type page –1. If you want to exclude several
pages, substitute the number of excluded pages for 1 in the
formula.
4) Press
Enter
to close the formula bar and insert the resulting field
into the document.
Figure 141: Formula bar
If you do not know the total number of pages in advance, then one
approach is to create a bookmark on the last page and then insert a
cross reference to it.
To create a bookmark on the last page:
1) Go to the last page (
Ctrl+End
).
2) Choose Insert > Bookmark.
3) In the Insert Bookmark dialog box (Figure 105), type a name for
the bookmark, for example LastPage. Click OK.
Figure 142: Inserting a bookmark.
156 OpenOffice.org 3 Writer Guide