ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* distinguishing index entries according to function by using \setupregister
@ 2014-06-07 17:39 Sanjoy Mahajan
  2014-06-07 21:01 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Sanjoy Mahajan @ 2014-06-07 17:39 UTC (permalink / raw)
  To: ntg-context

In MkII, one could configure the index to have different types of page
entries, e.g. roman and italic, by using \setupregister, as in the
example at <http://wiki.contextgarden.net/Command/setupregister>.  That
doesn't work with a fairly recent MkIV (2014.05.17 beta).

I see that it's a long-standing feature request:

<http://www.mail-archive.com/ntg-context%40ntg.nl/msg67495.html>

So, it is probably not on the short-term feature list.  But, if it is on
the list, please let me know, as I'll keep using it for my textbook!

Otherwise, I'll just make all the page entries the same style.  The
perfect is the enemy of the good, especially after 19 years...

(Right now with 2014.05.17 beta, using the feature, say as
\index[definition::]{commutativity}commutativity, gives an entry
alphabetized according to the "definition::" key.)

Regards,
-Sanjoy
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: distinguishing index entries according to function by using \setupregister
  2014-06-07 17:39 distinguishing index entries according to function by using \setupregister Sanjoy Mahajan
@ 2014-06-07 21:01 ` Hans Hagen
  2014-06-07 22:38   ` Sanjoy Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2014-06-07 21:01 UTC (permalink / raw)
  To: ntg-context

On 6/7/2014 7:39 PM, Sanjoy Mahajan wrote:
> In MkII, one could configure the index to have different types of page
> entries, e.g. roman and italic, by using \setupregister, as in the
> example at <http://wiki.contextgarden.net/Command/setupregister>.  That
> doesn't work with a fairly recent MkIV (2014.05.17 beta).
>
> I see that it's a long-standing feature request:
>
> <http://www.mail-archive.com/ntg-context%40ntg.nl/msg67495.html>
>
> So, it is probably not on the short-term feature list.  But, if it is on
> the list, please let me know, as I'll keep using it for my textbook!

hm, it's already an old (mkiv) feature

> Otherwise, I'll just make all the page entries the same style.  The
> perfect is the enemy of the good, especially after 19 years...
>
> (Right now with 2014.05.17 beta, using the feature, say as
> \index[definition::]{commutativity}commutativity, gives an entry
> alphabetized according to the "definition::" key.)

we have a better and mnore powerful mechanism now

\defineprocessor[bf][style=bold]
\defineprocessor[it][style=italic]

\starttext

     \index{it->italic}\index{normal}
     This is a \index[bf->bold]{test with bold number}test.
     This is a less important \index{test}test.

     \placeindex

\stoptext

(see test suite registers/processors*)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: distinguishing index entries according to function by using \setupregister
  2014-06-07 21:01 ` Hans Hagen
@ 2014-06-07 22:38   ` Sanjoy Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Sanjoy Mahajan @ 2014-06-07 22:38 UTC (permalink / raw)
  To: Hans Hagen, ntg-context

Hans Hagen <pragma@wxs.nl> writes:

> hm, it's already an old (mkiv) feature
>
> we have a better and mnore powerful mechanism now
>
> \defineprocessor[bf][style=bold]
> \defineprocessor[it][style=italic]

Thanks for this, and sorry for the noise.  I didn't even see that
material on the Registers wiki page, because I stopped looking after
seeing the \setupregister command help.  But I've updated that help to
refer (for MkIV) to the Registers#Processors section.

-Sanjoy


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-07 22:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-07 17:39 distinguishing index entries according to function by using \setupregister Sanjoy Mahajan
2014-06-07 21:01 ` Hans Hagen
2014-06-07 22:38   ` Sanjoy Mahajan

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).