[NTG-context] formatting index entries

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Wed Aug 21 17:33:17 CEST 2019


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