Thanks, Ariel. I hadn't seen that yet.
I'm convinced there's a native solution, though. Still looking for it . . .
I've decided to use Text Variables.
- I first define each category header as a text Hyperlink Destination.
- Then I insert a Text Variable in the appropropriate spot within the table of contents, using my simplified page number text variable definition: <pageNum />
Takes two Text Variables with a hyphen between them to express a page range. It works well enough.
A little trick is needed for the last page's page number. I use a text box off in the pasteboard as a Hyperlink Destination. It's never seen, but as long as it stays on the correct page, it'll always give me the page I need - the last in that section: