[Bug 35694] "Page number" automatic field stops counting before last page if offset >0 (see comment 22)
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 25 13:17:05 UTC 2024
https://bugs.documentfoundation.org/show_bug.cgi?id=35694
--- Comment #70 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Eyal Rozenberg from comment #69)
And we are back to the wording. It should be fixed. Generally,
"ApplyOffset(GetNumberOf(CurrentPage()), N )" implies a numeric "page number",
which is not a requirement. Any such arithmetics will not give you a *number*,
but a "page number" - thus, the only sensible thing is
"GetNumberOf(ApplyOffset(CurrentPage(), N))".
Now we have a *different* field, namely, Insert Formula field, allowing to use
arbitrary calculations. The problem with its use is absence of a pre-defined
variable for current page (the PAGE means actually "total number of pages"
[1]). An improvement could be introducing such a pre-defined variable (with a
problem of naming, given how awful the current name of PAGE was chosen).
Also, there is a Page Variable, allowing to do additional magic...
[1]
https://help.libreoffice.org/24.2/en-US/text/swriter/02/14020000.html?&DbPAR=WRITER
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libreoffice-ux-advise
mailing list