[NTG-context] formatting index entries

Robert Zydenbos context at zydenbos.net
Thu Aug 22 01:30:51 CEST 2019


Sorry, that works fine in MkIV, but not in MkII, which I need to use.

Robert

> On 21. Aug 2019, at 17:33, Wolfgang Schuster <wolfgang.schuster.lists at gmail.com> wrote:
> 
> Robert Zydenbos schrieb am 21.08.2019 um 10:59:
>> Dear list members,
>> 
>> In my book I am creating an index. I know that there are commands for formatting index entries, like:
>> 
>> \index{sl::īga}
>> 
>> if I want the word 'īga' to be printed in slanted type. I also know that we can create sub-entries, like
>> 
>> \index{īga+emphasized}
>> 
>> But now I want the word 'īga' to be slanted, but not the word 'emphasized'. I have tried things like \index{sl::īga+rm::emphasized}, but I can't figure this out.
>> 
>> Any suggestions?
> 
> \defineprocessor [sl] [style=slanted]
> \defineprocessor [bf] [style=bold]
> 
> \starttext
> 
> \dontleavehmode\index{sl->īga}
> 
> \dontleavehmode\index{īga+normal}
> 
> \dontleavehmode\index{bf->īga+bold}
> 
> \placeindex[balance=no]
> 
> \stoptext
> 
> Wolfgang
> 



More information about the ntg-context mailing list