From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74467 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: groupedcommand with color Date: Tue, 14 Feb 2012 13:37:21 +0100 Message-ID: <5B102CA6-86A9-4033-88CE-E543B4D1F6DD@st.estfiles.de> References: <4F3A51C6.8090006@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329223072 13666 80.91.229.3 (14 Feb 2012 12:37:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2012 12:37:52 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 14 13:37:50 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RxHdf-0006K7-91 for gctc-ntg-context-518@m.gmane.org; Tue, 14 Feb 2012 13:37:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4269FCB224; Tue, 14 Feb 2012 13:37:42 +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 32wGxEFf5onk; Tue, 14 Feb 2012 13:37:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DC51CB21F; Tue, 14 Feb 2012 13:37:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E5CDCB21F for ; Tue, 14 Feb 2012 13:37:39 +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 H85OEJLduY7B for ; Tue, 14 Feb 2012 13:37:24 +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 B46ABCB21C for ; Tue, 14 Feb 2012 13:37:24 +0100 (CET) Original-Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.29.8]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1ECbNCO007938 for ; Tue, 14 Feb 2012 13:37:24 +0100 Original-Received: from [89.247.112.60] (helo=[192.168.1.4]) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1RxHdL-0004T6-24; Tue, 14 Feb 2012 13:37:23 +0100 In-Reply-To: <4F3A51C6.8090006@wxs.nl> X-Mailer: Apple Mail (2.1084) X-Df-Sender: Njk4NTgw X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.29.8; 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: 06GxMBnND - c20261af79cc - 20120214 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74467 Archived-At: Am 14.02.2012 um 13:21 schrieb Hans Hagen: > On 14-2-2012 12:55, Steffen Wolfrum wrote: >> Hi, >> >> due to \color[]{} now needs an argument, groupedcommand doesn't work as before: >> >> >> \define\PlainSwitch% >> {\groupedcommand{\language[de]\ss}{}} >> >> \define\ColorSwitch% >> {\groupedcommand{\language[de]\ss\color[darkred]}{}} >> >> \starttext >> >> English: \date >> >> {\PlainSwitch German \date} >> >> English: \date >> >> {\ColorSwitch German \date} >> >> Test \date >> >> \stoptext >> >> Someone knows what to change here (in order to get the red "G" back)? > > something > > {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}} In version 2012.01.16 this gives an error: ! Extra }, or forgotten \endgroup. Steffen ___________________________________________________________________________________ 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 ___________________________________________________________________________________