From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25568 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: color in before= Date: Wed, 25 Jan 2006 22:13:27 +0100 Message-ID: <0B6DEAE5-5840-4F27-82FC-91DAF79A81ED@science.uva.nl> References: <34253B2A-6615-438B-93E0-ABEB65C67D3B@science.uva.nl> <43D7D7B2.8070504@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138223715 17218 80.91.229.2 (25 Jan 2006 21:15:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2006 21:15:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 25 22:15:10 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1rye-0003WY-GF for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jan 2006 22:14:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5387612812; Wed, 25 Jan 2006 22:14:51 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17270-01; Wed, 25 Jan 2006 22:14:47 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C86412808; Wed, 25 Jan 2006 22:14:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5EBFA12808 for ; Wed, 25 Jan 2006 22:14:46 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17116-06 for ; Wed, 25 Jan 2006 22:14:45 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 6817E127C8 for ; Wed, 25 Jan 2006 22:14:45 +0100 (CET) Original-Received: from 118-204.uva.surfnetthuis.nl [145.98.118.204] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k0PLEg926262; Wed, 25 Jan 2006 22:14:42 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ In-Reply-To: <43D7D7B2.8070504@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25568 Archived-At: Thanks, that worked. But it leads to my next question, I am afraid. When I define: \definecolor [brightred][r=0.7, g=.1, b=.1] then I can use this in \startcolor[brightred]...\stopcolor according to \meaning brightred being \protected macro \switchtocolor [brightred] Now I am fond of symbolic names and therefore also defined: \definecolor [FrameColor][brightred] Thus being able to use FrameColor as \MPcolor{FrameColor} in MetaFun. (\meaning says \MPcolor{FrameColor} is \scaledMPcolor 1Framecolor, \FrameColor being undefined) I thought to use \MPcolor{FrameColor} also in \startcolor[\MPcolor{FrameColor}]...\stopcolor or \startcolor[FrameColor]...\stopcolor but neither of these worked, nor did {\switchtocolor[FrameColor]...}\crlf {\switchtocolor[\MPcolor{FrameColor}]...}\crlf How can I use FrameColor here to? Without defining extra macros around FrameColor, I hope. On Jan 25, 2006, at 20:55, Taco Hoekwater wrote: > Hans van der Meer wrote: >> I suspect there is no way of sneaking in these []'s inside the >> command? That is the general solution. > > \setupxyz[before={\color[green]{whatever}}] > > Cheers, Taco > ______________________________________________ yours sincerely, dr. H. van der Meer