[NTG-context] Colored text in \type?

Alasdair McAndrew amca01 at gmail.com
Fri Sep 2 07:18:48 CEST 2011


Thanks very much - that works perfectly.  I didn't know about \definetype.

Thanks again,
Alasdair

On Fri, Sep 2, 2011 at 3:11 PM, Jaroslav Hajtmar <hajtmar at gyza.cz> wrote:

> Hello Alasdair.
>
> Try use \definetype :
>
> \definetype[rtype][color=red,**style=type]
> \definetype[btype][color=blue,**style=type]
>
>
>
> \starttext
>
> \type{%t^y_8*&}
>
> \rtype{%t^y_8*&}
>
> \btype{%t^y_8*&}
>
> \stoptext
>
> Jaroslav Hajtmar
>
>
> Dne 2.9.2011 6:49, Alasdair McAndrew napsal(a):
>
>> I'm writing up some computer notes for my students, and I have examples of
>> variables and other commands which involve characters like % and underscore.
>>  These are typeset with
>>
>> \type{%t^y_8*&}
>>
>> for example.  What I would like to do is to color these as well.  However
>>
>> \color[blue]{\type{%t^y_8*&}}
>>
>> doesn't seem to work; nor does
>>
>> {\blue \type{%t^y_8*&}}
>>
>> So - how do I obtain colored text within \type?
>>
>> Thanks,
>> Alasdair
>>
>> --
>> Blog: http://amca01.wordpress.com
>> Web: http://bit.ly/Alasdair
>> Facebook: http://www.facebook.com/**alasdair.mcandrew<http://www.facebook.com/alasdair.mcandrew>
>>
>>
>> ______________________________**______________________________**
>> _______________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist :ntg-context at ntg.nl  /http://www.ntg.nl/mailman/**
>> listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  :http://www.pragma-ade.nl  /http://tex.aanhet.net
>> archive  :http://foundry.supelec.fr/**projects/contextrev/<http://foundry.supelec.fr/projects/contextrev/>
>> wiki     :http://contextgarden.net
>> ______________________________**______________________________**
>> _______________________
>>
>
> ______________________________**______________________________**
> _______________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/**
> listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/**projects/contextrev/<http://foundry.supelec.fr/projects/contextrev/>
> wiki     : http://contextgarden.net
> ______________________________**______________________________**
> _______________________
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110902/e2d2c5f2/attachment-0001.html>


More information about the ntg-context mailing list