ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: Re: How to add entire chapter's page ranger for index entry?
Date: Sun, 23 Jan 2022 23:00:04 +0100	[thread overview]
Message-ID: <bfbd6ec0-ded2-bb64-591a-21880f3eafa6@fiee.net> (raw)
In-Reply-To: <248903374.742808.1642974040706@mail.yahoo.com>

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
___________________________________________________________________________________

  reply	other threads:[~2022-01-23 22:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <248903374.742808.1642974040706.ref@mail.yahoo.com>
2022-01-23 21:40 ` Joel via ntg-context
2022-01-23 22:00   ` Henning Hraban Ramm via ntg-context [this message]
2022-01-23 22:05   ` Bruce Horrocks via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bfbd6ec0-ded2-bb64-591a-21880f3eafa6@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).