[NTG-context] Formatting Indexed Words Within the Text

Hans Hagen pragma at wxs.nl
Sat Mar 24 11:28:52 CET 2012


On 24-3-2012 11:20, Alan Braslau wrote:
> On Fri, 23 Mar 2012 19:42:38 +0100
> Hans Hagen<pragma at wxs.nl>  wrote:
>
>> in the test suite: registers/processors-001.tex
>>
>> \defineprocessor[bf][style=bold]
>> \defineprocessor[it][style=italic]
>>
>> \starttext
>>
>>       \index{it->italic}\index{normal}
>>       This is a \index[bf->bold]{test with bold number}test.
>>       This is a less important \index{test}test.
>>
>>       \placeindex
>>
>> \stoptext
>>
>> so the magic word is 'processors'
>
> Magic indeed!
>
> So processors can be used *wherever* text is to be typeset,
> as a prefix: name->text
>
> \defineprocessor[name][...,...=...,...]
> with keys: style=, color=, left=, right=, command=
>
> I'm not sure that I understand, but once I do,
> I'll have to add a wiki page...

not yet but they will be used for cases like this

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list