PP. FF./Writer/055
TDF LibreOffice en español Document Liberation Project Blogs comunitarios Weblate Nextcloud Redmine Preguntas y respuestas Donar
El documento empieza con una página de portada y una de inicio. ¿Cómo hago para que el número total de páginas abarque solo las páginas con contenido escrito?
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 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 ▸ ▸ 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:
- select ▸ ▸ ▸ (Ctrl + F2);
- for the field Type, chose Insert Formula;
- in the Formula area enter:
page-2
, orpage+3
as required; and - 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, or
- their relative location in the document (before or after the current location).
Of course, the relevant information here is the page where they are.
- click at the end of the part;
- select ▸ ;
- give it a name, for example
EndDoc
; - click where you want to insert the count of pages (header, footer, etc.);
- select ▸ ▸ ▸ (Ctrl + F2);
- in the Type choose
Bookmarks
; - select the bookmark you have previously created and the Page format;
- 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); and
- 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:
- 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 dropdown list will display the bookmark names and you can reach one by clicking on its name in that list;
- select ▸ ▸ ;
- name it if you wish (useful for the Navigator for example);
- check ☑ Protect under Write Protection (you can even add a password);
- check ☑ Hide under Hide;
- 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).