From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74479 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: groupedcommand with color Date: Tue, 14 Feb 2012 21:29:33 +0100 Message-ID: References: <4F3A51C6.8090006@wxs.nl> <5B102CA6-86A9-4033-88CE-E543B4D1F6DD@st.estfiles.de> <4F3A5729.8010405@wxs.nl> <73E005E8-B286-448B-A6F2-EE0D9602CE5A@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329251406 20046 80.91.229.3 (14 Feb 2012 20:30:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2012 20:30:06 +0000 (UTC) Cc: Steffen Wolfrum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 14 21:30:05 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 1RxP0j-0003gJ-Hy for gctc-ntg-context-518@m.gmane.org; Tue, 14 Feb 2012 21:30:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90C97CB231; Tue, 14 Feb 2012 21:30: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 njXAOjumN55q; Tue, 14 Feb 2012 21:29:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9E03CB21F; Tue, 14 Feb 2012 21:29:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 981E3CB21F for ; Tue, 14 Feb 2012 21:29: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 Xu9xFqdfi0vu for ; Tue, 14 Feb 2012 21:29:39 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id D126BCB21C for ; Tue, 14 Feb 2012 21:29:39 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1EKTcml032726 for ; Tue, 14 Feb 2012 21:29:38 +0100 Original-Received: by eekc13 with SMTP id c13so159018eek.14 for ; Tue, 14 Feb 2012 12:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=q+/q2Qc+qkcDT4R1nlhPWf3hFCUS5xrcVUeMfkHZDMs=; b=WNS1fRoOUyVzwiDVca0a+4n9sxQ9vCHSHOopvyljp0rxGPdBjMAbcjJ6W68IrsSsoK uT/+mbdby8+IAfdDm7ckADmw1A+SmpSaf1uVUhN856BMFdqeBWU32eqsmZmsRRylIOTY f72gcWiuqbV5h/zv28hPKKZEee14fBq/gq74o= Original-Received: by 10.213.28.133 with SMTP id m5mr3873008ebc.62.1329251378583; Tue, 14 Feb 2012 12:29:38 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFA9D7.dip.t-dialin.net. [87.175.169.215]) by mx.google.com with ESMTPS id n56sm2514245eeh.6.2012.02.14.12.29.36 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Feb 2012 12:29:37 -0800 (PST) In-Reply-To: <73E005E8-B286-448B-A6F2-EE0D9602CE5A@st.estfiles.de> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rGxUtClb - b483fbef63f7 - 20120214 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:74479 Archived-At: Am 14.02.2012 um 14:26 schrieb Steffen Wolfrum: > = > 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 You can also use \definestartstop to create your command which can then be = used with \ColorSwitch{=85} and {\ColorSwitch =85}. \definestartstop [ColorSwitch] [commands=3D{\language[de]}, style=3Dsans, color=3Ddarkred] Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________