add absolute last page number as text variable
I cannot get a document with multiple sections, or a book with documents that contain sections, to display the absolute last page number as a text variable. They will only display the last page number of the section when using "last page" text variable. I want and "absolute last page number" text variable that would choose the absolute last page in a single document with multiple sections, and the absolute last page in a book with documents that contain sections. I want to be able to say "page 1 of 35, page 2 of 35", etc, where "35" is the absolute last page of the document or book, and the "page 1 or 2..." is the current page, which may reside in any section or document. I cannot seem to find a way to achieve these results in any of the current settings/variables.
![](https://secure.gravatar.com/avatar/3f9d68f337ae700ed9e5b85fac936559?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)