From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67915 Path: news.gmane.org!not-for-mail From: "Verhaag, G.C.H.M." Newsgroups: gmane.comp.tex.context Subject: Macro argument handling problem! Date: Thu, 21 Apr 2011 12:28:45 +0200 Message-ID: <4DB006DD.9090605@ziggo.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303381734 21680 80.91.229.12 (21 Apr 2011 10:28:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 10:28:54 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 21 12:28:50 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCr7y-00071a-4a for gctc-ntg-context-518@m.gmane.org; Thu, 21 Apr 2011 12:28:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E7BACAC01; Thu, 21 Apr 2011 12:28:49 +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 SUuH67h4bmL8; Thu, 21 Apr 2011 12:28:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 172E5CABD9; Thu, 21 Apr 2011 12:28:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 926F4CABD9 for ; Thu, 21 Apr 2011 12:28:44 +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 ZUSV+p51nCNQ for ; Thu, 21 Apr 2011 12:28:42 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 95810CABD2 for ; Thu, 21 Apr 2011 12:28:42 +0200 (CEST) Original-Received: from smtpq1.gn.mail.iss.as9143.net (smtpq1.gn.mail.iss.as9143.net [212.54.34.164]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3LASfpY013714 for ; Thu, 21 Apr 2011 12:28:42 +0200 Original-Received: from [212.54.34.142] (helo=smtp11.gn.mail.iss.as9143.net) by smtpq1.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1QCr7p-0006Ts-Qe for ntg-context@ntg.nl; Thu, 21 Apr 2011 12:28:41 +0200 Original-Received: from 541c2cdc.cm-5-5a.dynamic.ziggo.nl ([84.28.44.220]) by smtp11.gn.mail.iss.as9143.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QCr7o-0002RB-Cs for ntg-context@ntg.nl; Thu, 21 Apr 2011 12:28:40 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11 X-Authenticated-Sender: verhaaggchm@ziggo.nl (via SMTP) X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1QCr7o-0002RB-Cs X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-2.91, vereist 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90, T_RP_MATCHES_RCVD -0.01) X-ZiggoSMTP-MailScanner-From: verhaaggchm@ziggo.nl X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.54.34.164; country=NL; region=05; city=Maastricht; latitude=50.8500; longitude=5.6833; http://maps.google.com/maps?q=50.8500,5.6833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bEyasFa1 - 623027eabaf5 - 20110421 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:67915 Archived-At: Hi, I try this example from the wiki page System Macros/Argument handling: \def\dodefinesomething[#1][#2]% {\getparameters[\??xx#1][#2]} \def\definesomething% {\dodoubleargumentwithset\dodefinesomething} \starttext \definesomething[alfa][variable=test] \stoptext Running this yields ! Undefined control sequence I'm trying to write a few macros with optional delimited arguments with key-value sets and started reading the appropriate pages, but can't figure out why this example fails to run. Anybody any idea? Regards, Gerard Verhaag ___________________________________________________________________________________ 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 ___________________________________________________________________________________