From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: distinguishing index entries according to function by using \setupregister
Date: Sat, 07 Jun 2014 23:01:18 +0200 [thread overview]
Message-ID: <53937D9E.7010906@wxs.nl> (raw)
In-Reply-To: <87iooc7h60.fsf@approx.mit.edu>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-06-07 21:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-07 17:39 Sanjoy Mahajan
2014-06-07 21:01 ` Hans Hagen [this message]
2014-06-07 22:38 ` Sanjoy Mahajan
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=53937D9E.7010906@wxs.nl \
--to=pragma@wxs.nl \
--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).