Re: [NTG-context] How to add entire chapter's page ranger for index entry?

2022-01-23 Thread Bruce Horrocks via ntg-context


> On 23 Jan 2022, at 21:40, Joel via ntg-context  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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to add entire chapter's page ranger for index entry?

2022-01-23 Thread Henning Hraban Ramm via ntg-context

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to add entire chapter's page ranger for index entry?

2022-01-23 Thread 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?

--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___