ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Robert Blackstone <blackstone.robert@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Registers with distinguishable entries.
Date: Thu, 26 Apr 2012 19:59:01 +0200	[thread overview]
Message-ID: <CANOUSwfnv5i-7a9JAWaHEXu88RkLkP0Z_Mcqanv1Ehf8wdE-mw@mail.gmail.com> (raw)

On Thu, Apr 26, 2012  12:53:57 +0200,
Philipp Gesang <gesang@stud.uni-heidelberg.de> wrote

> You want the ?compress? switch in placeregister, or indicate
> ranges with \{start,stop}register:
>
> ????????????????????????????????????????????????????????????????????????
> \defineregister [demo] [demoes]
> \starttext
>
> \demo{Demoitem} foo
> \page[yes]
> \demo{Demoitem} foo
> \page[yes]
> %%% Here?s the range; should work without ?compress?
> \startregister[demo][demorange]{Demorange}
> \demo{Demoitem} foo
> \page[yes]
> \demo{Otheritem} bar
> \page[yes]
> \demo{Otheritem} bar
> \page[yes]
> \stopregister[demo][demorange]%% <= you?ll need to explicitly terminate the ranges so they can overlap
> \demo{Otheritem} bar
> \page[yes]
> \demo{Demoitem} foo
> \page[yes]
> \demo{Demoitem} foo
>
> \page[yes]
> %%%% Here?s the relevant bit:
> \placeregister [demo] [compress=yes]
>
> \stoptext
> ????????????????????????????????????????????????????????????????????????
>
> Btw. have you read the small print: http://wiki.contextgarden.net/Registers#Tricks ?
>

Thank you, Philipp,

This works perfectly.
I had seen the small print in that page but had obviously not read it
carefully enough.

So two of my problems are solved, the main wish, to be able to make an
index with distinguishable entries, is still unfulfilled, not only for
me but for at least two others.
Let's someone on the list can shine some light on that one too.

Kind regards,
Robert
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2012-04-26 17:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 17:59 Robert Blackstone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-26 17:44 Robert Blackstone
2012-04-26 10:07 Robert Blackstone
2012-04-26 10:18 ` S Barmeier
2012-04-26 13:14   ` Alan BRASLAU
2012-04-27  8:58     ` S Barmeier
2012-04-26 10:53 ` Philipp Gesang

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=CANOUSwfnv5i-7a9JAWaHEXu88RkLkP0Z_Mcqanv1Ehf8wdE-mw@mail.gmail.com \
    --to=blackstone.robert@gmail.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).