[NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Sanjoy Mahajan
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
___


Re: [NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Hans Hagen

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
___


Re: [NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Sanjoy Mahajan
Hans Hagen pra...@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
___