ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Duncan Hothersall <dh@capdm.com>
Subject: Elided page numbers in registers
Date: Wed, 31 Aug 2005 14:28:44 +0100	[thread overview]
Message-ID: <4315B08C.2060501@capdm.com> (raw)

Another question on registers (just getting into indexing!).

I have a book which numbers its pages by chapter, and so page numbers
are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for
the pages of chapter 2.

I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26.

I would like these ranges to be elided - in other words, the first one
would read 1/1-3 (remove repeated chapter number), and the second would
read 2/24-6 (remove repeated chapter number and also the repeated 2 in
page number).

Question: is there an already existing system to do this? I guess no :-)

Followup: I would be willing to help to code this if it doesn't exist (I
have some experience with such systems) if someone can point me at the
right bit of code to look at (things seem to be changing around
texutils, newtexexec etc. so I don't want to start at the wrong place).

Thanks...

Duncan

             reply	other threads:[~2005-08-31 13:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-31 13:28 Duncan Hothersall [this message]
2005-08-31 14:22 ` Vit Zyka
     [not found] <20050831142920.905D812815@ronja.ntg.nl>
2005-09-01  9:27 ` Duncan Hothersall
2005-10-06 10:37 Duncan Hothersall
2005-10-06 18:58 ` Vit Zyka

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=4315B08C.2060501@capdm.com \
    --to=dh@capdm.com \
    --cc=ntg-context@ntg.nl \
    /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).