From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63739 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \definenamespace Date: Fri, 19 Nov 2010 18:35:14 +0100 Message-ID: <12CE99E6-0C02-4194-B352-4D42485AF13C@gmail.com> References: <20101117191032.GD20635@aides> <8B256D52-298A-462A-9BDD-BBC4A5BF3B67@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290188137 14506 80.91.229.12 (19 Nov 2010 17:35:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2010 17:35:37 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 19 18:35:33 2010 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 1PJUrz-0003a3-Os for gctc-ntg-context-518@m.gmane.org; Fri, 19 Nov 2010 18:35:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6E1FCA872; Fri, 19 Nov 2010 18:35:30 +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 gZ1xBDGiKwGc; Fri, 19 Nov 2010 18:35:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D242FCA863; Fri, 19 Nov 2010 18:35:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D5D5CA863 for ; Fri, 19 Nov 2010 18:35:25 +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 AliUTnYx1LT2 for ; Fri, 19 Nov 2010 18:35:23 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 1F0A1CA85A for ; Fri, 19 Nov 2010 18:35:23 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAJHZLb4008291 for ; Fri, 19 Nov 2010 18:35:22 +0100 Original-Received: by bwz16 with SMTP id 16so4271207bwz.14 for ; Fri, 19 Nov 2010 09:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=n1s6UhJezI+7wixUWuP2YIZiVkVLdKIAZdEv31L6E1w=; b=iE/V9Fqutn1dhtzg5s27EsUbCKSD4HTHGMhonR+7By2pb3Uw0sSrmdKCxXXmRPYdaG /X3syXETxSvKIFEScU47KS9CjaiKwsXcdkpQwGIjBRAXqtPVb9yz5zlsYAjtXL4P4oKA FGwIKJ9EDl0LtEpAdYlVNjfpM6DcRund17/zY= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=kYC3XLX653MmWypI15lZQLqSjgLz+ZPqlAGBQkTJKTxdtR1a14gByp+m3wR8hYk/Mx dOxnHtu3ny3VLljDrFi+TJbryxfD34252a8PUrr+ByuqIpjIK9SVa4EZbtKEz9zq7BRf if1GPgkL4lAjMOclVzcHHJX1vbsKD1uBaKLyM= Original-Received: by 10.204.65.10 with SMTP id g10mr2347164bki.16.1290188121097; Fri, 19 Nov 2010 09:35:21 -0800 (PST) Original-Received: from [192.168.2.23] (p5B293164.dip.t-dialin.net [91.41.49.100]) by mx.google.com with ESMTPS id a25sm993018bks.20.2010.11.19.09.35.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Nov 2010 09:35:20 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 08Dx5zmX9 - 541eb31ee209 - 20101119 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:63739 Archived-At: Am 19.11.2010 um 02:05 schrieb Aditya Mahajan: > I am not sure how this is supposed to work. Consider this example: > > [...] There is a bug in the code for the \define... commands, you need this definition for \doinstalldefinehandler: \unexpanded\def\doinstalldefinehandler#1#2#3#4#5#6#7% {\unexpanded\def#2{\dodoubleempty#5}% \newtoks#6% \newtoks#7% \def#5[##1][##2]% {\edef#4{##1}% \the#6% predefine \ifsecondargument \doifassignmentelse{##2} {\getparameters[#1#4][\s!parent=#3,##2]} {\getparameters[#1#4][\s!parent=#1##2]}% \fi \the#7}} To have three arguments for the \define... commands like \defineenumeration change the above command to: \unprotected\unexpanded\def\doinstalldefinehandler#1#2#3#4#5#6#7% {\unexpanded\def#2{\dotripleempty#5}% \newtoks#6% \newtoks#7% \def#5[##1][##2][##3]% {\edef#4{##1}% \the#6% predefine \ifsecondargument \doifassignmentelse{##2} {\getparameters[#1#4][\s!parent=#3,##2]} {\getparameters[#1#4][\s!parent=#1##2,##3]}% \fi \the#7}} 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-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________