My document has several styles with headers. I would like to have my headers in the following form:
Text X of Y
where X is the page number for the corresponding style and Y is the page count for that style so that my
headers would look something like this:
Chapter 1 page 1 of 10
Chapter 2 page 4 of 23
etc.
I can manage changing the page numbers for each style but I don’t know how to count all the pages of a certain style only rather than the whole document. Can you help?