From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74472 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 14:26:36 +0100 Message-ID: <73E005E8-B286-448B-A6F2-EE0D9602CE5A@st.estfiles.de> References: <4F3A51C6.8090006@wxs.nl> <5B102CA6-86A9-4033-88CE-E543B4D1F6DD@st.estfiles.de> <4F3A5729.8010405@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 1329226028 5311 80.91.229.3 (14 Feb 2012 13:27:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2012 13:27:08 +0000 (UTC) Cc: Hans Hagen , Philipp Gesang To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 14 14:27:03 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 1RxIPN-0000E2-7K for gctc-ntg-context-518@m.gmane.org; Tue, 14 Feb 2012 14:27:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F34ECB213; Tue, 14 Feb 2012 14:27:00 +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 zuiJzwL66dUA; Tue, 14 Feb 2012 14:27:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B78BCB218; Tue, 14 Feb 2012 14:26:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62A0CCB218 for ; Tue, 14 Feb 2012 14:26:53 +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 I8OcuYI7QpfH for ; Tue, 14 Feb 2012 14:26:38 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id B2A03CB213 for ; Tue, 14 Feb 2012 14:26:38 +0100 (CET) Original-Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.29.23]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1EDQbPT010274 for ; Tue, 14 Feb 2012 14:26:38 +0100 Original-Received: from [89.247.112.60] (helo=[192.168.1.4]) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1RxIOz-0007J4-6H; Tue, 14 Feb 2012 14:26:37 +0100 In-Reply-To: <4F3A5729.8010405@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.23; 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: 03GxNqBae - 960e63ab99bf - 20120214 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:74472 Archived-At: Am 14.02.2012 um 13:44 schrieb Hans Hagen: > On 14-2-2012 13:37, Steffen Wolfrum wrote: >> >> 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. > > and how about > > {\groupedcommand{\language[de]\ss\directcolored[darkred]}{}} now it works: directedcolor, as well as switchtolcolor Thank you Hans and Philipp! 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 ___________________________________________________________________________________