From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77745 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: checkparameters and current beta (20120802) Date: Fri, 3 Aug 2012 22:44:11 +0200 Message-ID: <120BF52A-B0AB-4656-AF5E-5D2A66CFFF1F@gmail.com> References: <501C22AA.4000909@aon.at> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344026660 8875 80.91.229.3 (3 Aug 2012 20:44:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2012 20:44:20 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 03 22:44:21 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 1SxOjL-0002Fg-0r for gctc-ntg-context-518@m.gmane.org; Fri, 03 Aug 2012 22:44:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DC305101F9; Fri, 3 Aug 2012 22:44:17 +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 l9Xpqlfzyfhz; Fri, 3 Aug 2012 22:44:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 15CE3101E4; Fri, 3 Aug 2012 22:44:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9CC2101E4 for ; Fri, 3 Aug 2012 22:44:14 +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 SeUJVeOopHHQ for ; Fri, 3 Aug 2012 22:44:13 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 57D2B101E0 for ; Fri, 3 Aug 2012 22:44:13 +0200 (CEST) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q73KiBIS015507 for ; Fri, 3 Aug 2012 22:44:12 +0200 Original-Received: by weys10 with SMTP id s10so893533wey.14 for ; Fri, 03 Aug 2012 13:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=9VRpoMhReQUXU98AOqUD1E0WRTC4GPw6bC1uDjfOwMI=; b=CgSjm2MCYDu/zai+5vpy617cnOtGuAQRJuIH9yq/B5L8LtYkVhNSmMPl0/feRqg6JO ORPEQvIUAUFtj1hoUhjS88Oe0zkZRZ29LBlvfx7GeOtKn0SvYMyYAS39Fdd3zKsrsoG1 nyhLkuB6SfVPjf/gHPVNtS6pCuO5j3i3CvDL5c5Ai9UsDHHVz9cdaHi/EQcg6hgoRm5h KpzrlQwBA59N0DVF9t4YAtcupoNItK/4gwrBZb0ako4UX9vXLVAEpDZcfJd3Vi6Ryiws Raqz5HoqmmXoskiPaljDfsacBbGwG+N6l38mp4mVzD+OIMdk2TLqhxZznFujXDaqTJLY yN1A== Original-Received: by 10.216.241.202 with SMTP id g52mr1512354wer.212.1344026651044; Fri, 03 Aug 2012 13:44:11 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AF9F28.dip.t-dialin.net. [87.175.159.40]) by mx.google.com with ESMTPS id h9sm41542621wiz.1.2012.08.03.13.44.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Aug 2012 13:44:10 -0700 (PDT) In-Reply-To: <501C22AA.4000909@aon.at> X-Mailer: Apple Mail (2.1485) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; 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: 03HGkIbug - 4cedfd574519 - 20120803 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:77745 Archived-At: 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 this: \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 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 ___________________________________________________________________________= ________