(again) coloring \tex with [option=TeX]
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
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 -----------------------------------------------------------------
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
participants (2)
-
Hans Hagen
-
Pablo Rodríguez