Frequently asked questions - Writer

From The Document Foundation Wiki
< Faq‎ | Writer
Jump to: navigation, search

My document begins with a title page and a home page. How do I make the total number of pages to match only the written pages?

When a document has many pages, there may be title pages or home pages that you don't want to be numbered.

The FAQ n°002 explains how to begin the numbering only on the 2nd or 3rd page and the FAQ n°104 explains how to begin the numbering on the first page with a value greater than 1. But in these cases the count of pages displayed by Insert ▸ Fields ▸ Page count remains the total page count for the document, including the title page and the home page.

To display the count for written pages only

Proceed as follows:

  1. select Insert ▸ Fields ▸ Other (Ctrl+F2);
  2. select the Variables tab;
  3. for the field type, chose Insert Formula;
  4. in the Formula area enter: page-2, or page+3 as required;
  5. click Insert then Close.

This method allows you to display the count of written pages for a simple document.

To display page counts for each part of document

These parts could be for example: results, discussion, annexes, etc. The method is to create a bookmark at the end of each part of the document. With the help of bookmarks, you can retrieve:

  • the page or the chapter where they are,
  • the text where they have been entered,
  • their relative location in the document (before or after the current location)

Of course, the relevant information here is the page where they are.

  1. click at the end of the part;
  2. select Insert ▸ Bookmark;
  3. give it a name, for example EndDoc;
  4. click where you want to insert the count of pages (header, footer, etc.);
  5. select Insert ▸ Fields ▸ Other (Ctrl+F2);
  6. select the Cross-references tab;
  7. in the Type chose Bookmarks ;
  8. select the bookmark you have previously created and the Page format;
  9. click Insert then Close.

Repeat this process for each part.

Going further

The Bookmarks are "fragile" insofar:

  • they are not displayed (neither as marks nor as non-printing characters),
  • they can be deleted or moved with the last paragraph.

It is possible to protect against this problem by inserting the bookmark in a protected and hidden section:

  1. Place the cursor at the end of a part, on the bookmark:
    • open the Navigator by double clicking on its name;
    • right-click in the status bar on the area where page numbering is displayed, a drop down list will display the bookmark names and you can reach one by clicking on its name in that list;
  2. select Insert ▸ Section;
  3. select the Section tab;
  4. name it if you wish (useful for the Navigator for example);
  5. check Protect against changes (you can even add a password);
  6. check Hide;
  7. click Insert.

Repeat this process for each bookmark.

An alternative to the use of sections is to put bookmarks in text frames which can also be protected (but do not support passwords).