ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* (again) coloring \tex with [option=TeX]
@ 2013-10-05 18:21 Pablo Rodríguez
  2013-10-05 20:58 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodríguez @ 2013-10-05 18:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I would like to have \tex using [option=TEX]. But I cannot get it
working, even if I setup \type to [option=TEX].

Here you have the minimal sample:

    \setuptype[option=TEX]
    \starttext
    \type{\ConTeXt} comes from \tex{TeX}.
    \stoptext

How can I have \tex with colored output, the same way \type is colored
above?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: (again) coloring \tex with [option=TeX]
  2013-10-05 18:21 (again) coloring \tex with [option=TeX] Pablo Rodríguez
@ 2013-10-05 20:58 ` Hans Hagen
  2013-10-05 23:48   ` Pablo Rodríguez
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2013-10-05 20:58 UTC (permalink / raw)
  To: ntg-context

On 10/5/2013 8:21 PM, Pablo Rodríguez wrote:
> Dear list,
>
> I would like to have \tex using [option=TEX]. But I cannot get it
> working, even if I setup \type to [option=TEX].
>
> Here you have the minimal sample:
>
>      \setuptype[option=TEX]
>      \starttext
>      \type{\ConTeXt} comes from \tex{TeX}.
>      \stoptext
>
> How can I have \tex with colored output, the same way \type is colored
> above?

by redefining it:

\unexpanded\def\tex#1{\normalexpanded{\type{\letterbackslash#1}}}


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: (again) coloring \tex with [option=TeX]
  2013-10-05 20:58 ` Hans Hagen
@ 2013-10-05 23:48   ` Pablo Rodríguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodríguez @ 2013-10-05 23:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/05/2013 10:58 PM, Hans Hagen wrote:
> On 10/5/2013 8:21 PM, Pablo Rodríguez wrote:
>> [...]
>> How can I have \tex with colored output, the same way \type is colored
>> above?
> 
> by redefining it:
> 
> \unexpanded\def\tex#1{\normalexpanded{\type{\letterbackslash#1}}}

Many thanks for your help, Hans.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-05 23:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-05 18:21 (again) coloring \tex with [option=TeX] Pablo Rodríguez
2013-10-05 20:58 ` Hans Hagen
2013-10-05 23:48   ` Pablo Rodríguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).