evnbr/bindery

Suggestion: Support dynamic or section-scoped page numbering

broskoski opened this issue · 2 comments

First of all, thank you for this amazing library. Seriously, well done 🎩

I'm looking for a way to customize where the page count starts on the running header (or somehow offsetting it). In our designs, the cover, title page, table of contents should not count towards page numbers. The problem is that a table of contents can be variable page length, so offsetting the count manually probably wouldn't work.

Can you think of any way of approaching this problem?

evnbr commented

Glad you're making use of it @broskoski! Good question. If I'm understanding correctly, you want to customize the page number both in the running header and in the table of contents itself, right?

It seems like:

  1. Someone should be able to number groups of pages separately, and to format those ranges in a custom way (ie to achieve something like, i, ii, iii, iv, 1, 2, 3, 4 )
  2. both PageReference and RunningHeader should be able to access those numbers.

does that feel like a fair summary?

@evnbr yes, perfect summary!