From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25563 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: color in before= Date: Wed, 25 Jan 2006 20:38:30 +0100 Message-ID: <34253B2A-6615-438B-93E0-ABEB65C67D3B@science.uva.nl> 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 1138218138 24472 80.91.229.2 (25 Jan 2006 19:42:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2006 19:42:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 25 20:42:15 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 1F1qWQ-0000PA-U2 for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jan 2006 20:41:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 70F6D127C3; Wed, 25 Jan 2006 20:41:38 +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 16241-01; Wed, 25 Jan 2006 20:41:38 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08107127EE; Wed, 25 Jan 2006 20:39:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0C92127EE for ; Wed, 25 Jan 2006 20:39:49 +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 16135-01-2 for ; Wed, 25 Jan 2006 20:39:48 +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 A9ED5127C3 for ; Wed, 25 Jan 2006 20:39:48 +0100 (CET) Original-Received: from 118-124.uva.surfnetthuis.nl [145.98.118.124] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k0PJdj916295; Wed, 25 Jan 2006 20:39:45 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: NTG ConTeXt 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:25563 Archived-At: I want to put a color command in a "before" command, that command being inserted in a macro. Something like \setupxyz[before=\color[green]{whatever}] The problem is that the argument parser gets confused when []- expressions are found within the setup. It is not an option to reprogram everything with {}'s instead of []'s, because then I lose to much of ConTeXt's abilities (apart from the nuisance of having to reprogram something that has already been done). I suspect there is no way of sneaking in these []'s inside the command? That is the general solution. My eyes spotted something like \dowithcolor#1#2, but there TeX complains about not knowing \od. Is there a solution to this problem? yours sincerely, dr. H. van der Meer