[NTG-context] How to add entire chapter's page ranger for index entry?
Bruce Horrocks
ntg at scorecrow.com
Sun Jan 23 23:05:21 CET 2022
> On 23 Jan 2022, at 21:40, Joel via ntg-context <ntg-context at ntg.nl> wrote:
>
> I am adding items to an index simply using `\index{word}`.
>
> There are a few cases where instead of printing just the page number where `\index{word}` is placed, I need the entire page range for that chapter to be displayed. For instance, if Chapter 3 spans page 22-50, and I place `\index{word}` in Chapter 3, I need the index to display "word 22-50", but only for that entry...not for all index entries.
>
> How to add entire chapter's page ranger for index entry?
\startchapter[title={My chapter title}]
\startregister[index][anIdentifier]{word}
The text...
\stopregister[index][anIdentifier]
\stopchapter
—
Bruce Horrocks
Hampshire, UK
More information about the ntg-context
mailing list