[NTG-context] consistent index entries

Henning Hraban Ramm texml at fiee.net
Sat Aug 1 21:50:36 CEST 2020



> Am 01.08.2020 um 21:01 schrieb Jairo A. del Rio <jairoadelrio6 at gmail.com>:
> 
> Hi, Henning. According to the garden, something like:
> 
> \def\Ort#1{\index[#1]{\ctxlua{user.Lookup("#1")}}}
> 
> as long as #1 is capable of being sorted in the normal way, should work. 

Thank you, but that doesn’t work if my lookup e.g. creates "Garmisch-Partenkirchen" from "Partenkirchen".

> Am 01.08.2020 um 21:18 schrieb Jairo A. del Rio <jairoadelrio6 at gmail.com>:
> 
> Wrt formatting (e.g. \index{\emph{something}}), the garden also mentions processors for MkIV (https://wiki.contextgarden.net/Registers#Processors), so you can wrap them with custom commands, in case it helps.

I already use processors; \emph was just an example.


Hraban


More information about the ntg-context mailing list