[NTG-context] How to add entire chapter's page ranger for index entry?
Henning Hraban Ramm
texml at fiee.net
Sun Jan 23 23:00:04 CET 2022
Am 23.01.22 um 22:40 schrieb Joel via ntg-context:
> 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?
You need to use
\startregister[index][some code]{Entry}
... chapter content ...
\stopregister[index][some code]
Hraban
More information about the ntg-context
mailing list