Am 07.07.24 um 18:01 schrieb Wolfgang Schuster:
Henning Hraban Ramm schrieb am 05.07.2024 um 22:36:
Hi,
is it possible to apply a processor to an index sub-entry?
\index{Modules+\type{filter}}
looks good, but "filter" is sorted under "type".
\defineprocessor[type][style=mono]
\index{Modules+type->filter}
results in a "Modules / type->filter" entry.
\index[Modules+filter]{Modules+\type{filter}}
works and looks good, but the code feels bad…
1. Complete your example to test them without adding stuff.
Sorry.
2. Use \setregisterentry which allows you to set processors for each
entry level.
\defineprocessor[type][style=mono]
\starttext
xxx\setregisterentry[index][entries:1=Modules,entries:2=filter,processors:2=type]
Oh wow, another command that I didn’t know. Might make sense to use in
macros or automated setups.
Thank you!
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________