LibreOffice Writer is missing an important feature; A page counts like field
which counts pages of a specific style only instead of counting all the pages
of the whole document. This feature would be very useful.
Sometimes users want to or are required to have different sections in their
document with page numbering like this:
Page X of Y,
where X is a page number and Y is a page count for that specific section. For
Appendix 1 page 3 of 8
Appendix 2 page 1 of 3
Appendix 3 page 5 of 6
Currently, implementing the example above is not as simple as it should be. One
way is to use bookmarks and cross-references like this:
1. Make a bookmark on the last line of a style: Insert > Bookmark
2. Name it like "LastPageSTYLENAME" where STYLENAME is the name of the corresponding style.
3. Make a cross-reference to it where you want the "page count for style field"
to be: Insert > Cross-reference
4. Select type "Bookmark", select the bookmark you made, select "Page" for the
"Insert reference to" option and click insert.
This is not that hard to do when you know how, but it is tiresome. Also, many
users don't know how to do this workaround. A simple field would be much better:
Insert > Fields > Page Count for style
Users would select a place where they want this field to appear (a header most
likely but not always), select "Page Count for style" in the menu and, from the
opening window, select a style upon which the page count field should operate.
The options should be something like this:
() this style (default)
() other style [=========]
() other styles [=========]
where () is a radio button and [=========] is a dropdown panel where all the styles
used in the corresponding document are listed.
It is useful to be able to select the style(s) the page count field should operate
with. For example, users might need to tell the reader how many appendix pages they
have in total like this:
"My document is 132 pages long including 14 appendix pages."
Is this feature implementable?
Operating System: All
Version: 188.8.131.52 release
I am confirming this bug. Status set to NEW. Severity set to enhancement as this is seeking to implement functionality that has never existed. The related AskLO thread is:
The use of "style" in the title is not entirely accurate. The request is for page counts according to sub-divisions of a document i.e., part, chapter, section, etc. It would seem unlikely that this would based on a page style. I will repeat here what I stated in the related AskLO thread:
> There is currently no field available to obtain a page count for a part /
> chapter / section within a document as this is not supported by the ODF v1.2
> specification. Instead <text:page-count> (184.108.40.206) relates to the document as
> a whole:
This is what the ODF v1.2 spec states under 220.127.116.11:
> The <text:page-count> element displays the value of the meta:page-count
> attribute of the <meta:document-statistic> element of a document. 19.332
One workaround at the moment is to use bookmarks and cross-references as indicated in the description.
or a field that counts the total starting from the place where a new page numbering in started (typically that is in the first paragraph of a page with page break before)
Add my vote for this feature to be implemented!
(In reply to Tim Chambers from comment #3)
> Add my vote for this feature to be implemented!
Thanks for that! By the way: the only way to vote in our community is by your hands / work ;)
*** Bug 105668 has been marked as a duplicate of this bug. ***
Changing priority back to 'medium' since the number of duplicates is lower than 5
I would be very interested in this feature too.
*** Bug 50210 has been marked as a duplicate of this bug. ***
*** Bug 141763 has been marked as a duplicate of this bug. ***
Bug 153259 requests a way to exclude pages from counting so one could have a title page, for example, that is not counted for the total number of pages. We should realize this by adding an option to the page style "[x] Include this page style for numbering". It would only partially solve this use case but is a generic and straightforward solution.