From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77751 Path: news.gmane.org!not-for-mail From: Daniel Schopper Newsgroups: gmane.comp.tex.context Subject: Re: checkparameters and current beta (20120802) Date: Sat, 04 Aug 2012 11:30:37 +0200 Message-ID: <501CEBBD.7040707@aon.at> References: <501C22AA.4000909@aon.at> <120BF52A-B0AB-4656-AF5E-5D2A66CFFF1F@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344072652 29286 80.91.229.3 (4 Aug 2012 09:30:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2012 09:30:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 04 11:30:49 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 1Sxah6-0002I8-Lx for gctc-ntg-context-518@m.gmane.org; Sat, 04 Aug 2012 11:30:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E9FF10232; Sat, 4 Aug 2012 11:30:47 +0200 (CEST) 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 7XeQ79j6qRAG; Sat, 4 Aug 2012 11:30:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 518D4101F2; Sat, 4 Aug 2012 11:30:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3894C101F2 for ; Sat, 4 Aug 2012 11:30:42 +0200 (CEST) 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 86yRWULkTuAf for ; Sat, 4 Aug 2012 11:30:41 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id EB431101E7 for ; Sat, 4 Aug 2012 11:30:40 +0200 (CEST) Original-Received: from email.aon.at (smtpout04.highway.telekom.at [195.3.96.117]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q749Ucgk027712 for ; Sat, 4 Aug 2012 11:30:39 +0200 Original-Received: (qmail 31765 invoked from network); 4 Aug 2012 09:30:38 -0000 Original-Received: from 93-82-83-94.adsl.highway.telekom.at (HELO imac.lan) (aon.912045897.daniel@[93.82.83.94]) (envelope-sender ) by smarthub81.res.a1.net (qmail-ldap-1.03) with SMTP for ; 4 Aug 2012 09:30:37 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <120BF52A-B0AB-4656-AF5E-5D2A66CFFF1F@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=195.3.96.117; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04HGxuCJj - 2caf7e3f7d61 - 20120804 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77751 Archived-At: Great, thanks! Am 03.08.12 22:44, schrieb Wolfgang Schuster: > > Am 03.08.2012 um 21:12 schrieb Daniel Schopper : > >> Hi, >> \checkparameters seems broken in the current beta. The following example= used to work at least with version 2012.06.13 >> >> ------------------------------------------------------------------------= --------- >> \def\myCom[#1]{% >> \checkparameters[#1] >> \ifparameters >> \getparameters[do][one=3D1,two=3D2,#1] >> \doone\ \dotwo >> \else >> #1 >> \fi >> } >> \starttext >> \myCom[one] >> >> \myCom[one=3Done,two=3Dtwo] >> \stoptext > > You have to change this on syst-aux.mkiv: > > \unexpanded\def\checkparameters[#1]% > - {\syst_helpers_get_empty_parameters#1=3D@@\_e_o_s_} > + {\syst_helpers_check_parameters#1=3D@@\_e_o_s_} > > You can also use \doifassignmentelse to check the content of your macro. > > \def\mycommand[#1]% > {\doifassignmentelse{#1} > {\getrawparameters[mycommand][one=3D1,two=3D2,#1]% > \mycommandone\ \mycommandtwo} > {#1}} > > When you want to use \if=85 \else =85 \fi in your command you can use thi= s: > > \def\mycommand[#1]% > {\doifassignmentelse{#1}\donetrue\donefalse > \ifdone > \getrawparameters[mycommand][one=3D1,two=3D2,#1]% > \mycommandone\ \mycommandtwo > \else > #1% > \fi} > > Wolfgang > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________