Re: [NTG-context] Registers with distinguishable entries.
![](https://secure.gravatar.com/avatar/d963aa4f8dbd7b3b1ebb578af020b641.jpg?s=120&d=mm&r=g)
On Thu, Apr 26, 2012 12:53:57 +0200,
Philipp Gesang
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
participants (1)
-
Robert Blackstone