* Is there a syntax for making many index entry's all in one?
[not found] <551273955.1195284.1640729397551.ref@mail.yahoo.com>
@ 2021-12-28 22:09 ` Joel via ntg-context
2021-12-28 22:35 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Joel via ntg-context @ 2021-12-28 22:09 UTC (permalink / raw)
To: ntg-context; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 467 bytes --]
I am using \index{} to populate \placeindex (an index) with items.
I am wondering if there is any syntax that allows one \index{} command to define more than one entry, for example, something like this:
\index{presidents+Lincoln, Abraham; Lincoln, Abraham}
The result is two appearances in the index:
LLincoln, Abraham
Ppresidents Lincoln, Abraham
Is there some syntax for making this possible, without calling \index{} multiple times?
--Joel
[-- Attachment #1.2: Type: text/html, Size: 1421 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is there a syntax for making many index entry's all in one?
2021-12-28 22:09 ` Is there a syntax for making many index entry's all in one? Joel via ntg-context
@ 2021-12-28 22:35 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-28 22:35 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
On 12/28/2021 11:09 PM, Joel via ntg-context wrote:
> I am using \index{} to populate \placeindex (an index) with items.
>
> I am wondering if there is any syntax that allows one \index{} command
> to define more than one entry, for example, something like this:
>
> \index{presidents+Lincoln, Abraham; Lincoln, Abraham}
>
> The result is two appearances in the index:
>
> L
> Lincoln, Abraham
>
> P
> presidents
> Lincoln, Abraham
>
> Is there some syntax for making this possible, without calling \index{}
> multiple times?
splitting on + is already tricky (i just send Alan a patch that deals
with a mix of text and math that has + in it)
it is no big deal top write this but just using a ; would for sure
issues with existing indices
anyway, apart from maybe some typing it is not more efficient to combine
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-28 22:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <551273955.1195284.1640729397551.ref@mail.yahoo.com>
2021-12-28 22:09 ` Is there a syntax for making many index entry's all in one? Joel via ntg-context
2021-12-28 22:35 ` Hans Hagen via ntg-context
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).