From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86451 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: defining headcommand Date: Tue, 25 Feb 2014 18:43:38 +0100 Message-ID: <530CD64A.3070707@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1393350233 24267 80.91.229.3 (25 Feb 2014 17:43:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2014 17:43:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 25 18:44:03 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WIM30-0008Ex-Um for gctc-ntg-context-518@m.gmane.org; Tue, 25 Feb 2014 18:44:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16592101E1; Tue, 25 Feb 2014 18:44:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y1QjllthaYSr; Tue, 25 Feb 2014 18:44:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E501C101E3; Tue, 25 Feb 2014 18:43:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B955101E3 for ; Tue, 25 Feb 2014 18:43:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qsUVuaBcf-QV for ; Tue, 25 Feb 2014 18:43:57 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id ED200101E1 for ; Tue, 25 Feb 2014 18:43:47 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1PHhjKM028249 for ; Tue, 25 Feb 2014 18:43:46 +0100 Original-Received: from [192.168.1.34] ([88.13.154.48]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MT60g-1WiA6Q0RCI-00S9cQ for ; Tue, 25 Feb 2014 18:43:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 X-Provags-ID: V03:K0:jEVfTQ05UBxdzOLtGAdU1QyWYR8rqzeZpnra1JR9g/RW9kCO0yV WAnVjGJtz0+sgvivmmkGexFB5tuMoqmakFJt9FHlNOd7GB9MOHUdoiiBJYqQRxKvRaMpAZH nu+NM3JQYlfJzLUDiXb3o4C2ZlZ0wRjWzqFP4jVcEIVrGq7qqlBbJvSn0FReGU7BSjwP+In K8BQpNt49xyCOPGoy2bJQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.227.17.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NLuFHKk7 - d9cd62afa220 - 20140225 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86451 Archived-At: Dear list, I have the following sample: \definetype[TeXcode][option=TEX] \unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}} \definedescription[TeXcommand][width=fit,hang=fit,headcommand=\tex] \starttext Its logo can be invoked with \tex{ConTeXt}. But you can have different logos. \TeXcommand{ConTeXt} lowercase. \TeXcommand{CONTEXT} all caps. \TeXcommand{Context} small caps. \stoptext How should i redefine the headcommand value, so I can get headcommand with colored output? (I mean, so I get the same output as when invoking \tex{ConTeXt}.) 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 ___________________________________________________________________________________