Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




OpenOffice Writer 3.x Guide
Previous Page Home Next Page

Problems with restarting page numbering

Restarting page numbering may lead to two problems.

  • The Statistics page in the document’s Properties (File > Properties) always displays the total number of pages in the document, which may not be what you want to appear in the Page Count field.
  • When page numbering is restarted, OOo always make sure that an odd-numbered page is a right page and an even-numbered page is a left page. It does this by inserting a blank page, if necessary. Sometimes this blank page is not desired, particularly when creating PDFs or when printing single sided.

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.
  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.
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, type a name for the bookmark, for example LastPage. Click OK.
Inserting a bookmark.

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 location—for 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.
Image:documentation_note.png 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.

Inserting a cross-reference to a bookmark on the last page of a document.

OpenOffice Writer 3.x Guide
Previous Page Home Next Page

  Published under the terms of the Creative Commons License Design by Interspire