[NTG-context] Colored text in \type?

Wolfgang Schuster schuster.wolfgang at googlemail.com
Fri Sep 2 14:34:51 CEST 2011


Am 02.09.2011 um 09:47 schrieb Peter Münster:

> On Fri, Sep 02 2011, Alasdair McAndrew wrote:
> 
>> 
>> \color[blue]{\type{%t^y_8*&}}
>> 
>> doesn't seem to work; nor does
>> 
>> {\blue \type{%t^y_8*&}}
> 
> No problem with mkiv.

You don’t even need \type in mkiv:

\asciimode

\starttext

\definehighlight[one][color=red,  style=mono]
\definehighlight[two][color=green,style=mono]

\mono{%t^y_8*&}

\one{%t^y_8*&}

\two{%t^y_8*&}

\stoptext

Wolfgang


More information about the ntg-context mailing list