From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20831 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Problem with defineenumeration [number=no] Date: Mon, 13 Jun 2005 17:45:57 +0200 Message-ID: <42ADAA35.3050103@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010900030106000109040800" X-Trace: sea.gmane.org 1118677533 8779 80.91.229.2 (13 Jun 2005 15:45:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2005 15:45:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 17:45:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dhr7s-0002hZ-Ep for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2005 17:45:24 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 829D9127B6; Mon, 13 Jun 2005 17:50:14 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20301-05; Mon, 13 Jun 2005 17:50:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BFB25127B0; Mon, 13 Jun 2005 17:46:03 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 58135127B0 for ; Mon, 13 Jun 2005 17:46:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20300-04-5 for ; Mon, 13 Jun 2005 17:46:01 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with ESMTP id 578A41279C for ; Mon, 13 Jun 2005 17:46:01 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 7906E15570 for ; Mon, 13 Jun 2005 17:46:11 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32241-03 for ; Mon, 13 Jun 2005 17:46:08 +0200 (CEST) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id A4448152DD for ; Mon, 13 Jun 2005 17:46:08 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20831 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20831 This is a multi-part message in MIME format. --------------010900030106000109040800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, There is a missing \noexpand in core-des.tex. Attached is a fixed version of the affected macro. Taco Matthias Weber wrote: > Hello, > > if I'm not mistaken as usual, > > the number=no option of \ defineenumeration is broken in ConTeXt ver: > 2005.06.08 fmt: 2005.6.13: > > > > \mainlanguage [en] > \defineenumeration > [test] > [text=Test, > number=no, > location=hanging] > > \starttext > > \starttest > What's that? > > \stoptext > > produces "ommandTest" instead of just "Test". > Please advise. > > Matthias > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context --------------010900030106000109040800 Content-Type: application/x-tex; name="deftest.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="deftest.tex" \unprotect \def\special@@descriptionhandler[#1]#2#3% {\strut \doifelse{\descriptionparameter\c!number}\v!no \!!doneafalse{\doifelse{#1}{-}\!!doneafalse\!!doneatrue}% \chardef\descriptioncoupling\zerocount \iflocation \doifsomething{\descriptionparameter\c!coupling} {\processaction % genereert > of < [\descriptionparameter\c!couplingway] [ \v!local=>\chardef\descriptioncoupling\plusone, % old: default \v!global=>\chardef\descriptioncoupling\plustwo]}% new: global crosslinking \fi \setupnumber % the number is called indirectly [\currentdescriptionnumber] [\c!sectionnumber=\descriptionparameter\c!sectionnumber]% \if!!donea \makeprecedingsectionnumber[\currentdescriptionnumber]% \preparethenumber{\??dd\currentdescription}\precedingsectionnumber\preparednumber \iftrialtypesetting\startlocal\fi \getvalue{\e!next\currentdescription}% tricky but we need the preroll \iftrialtypesetting\stoplocal\fi % \getvalue{\e!next#2#1}% \iflocation \bgroup \letvalue{\??dd\currentdescription\c!sectionnumber}\v!yes \protectconversion \makeprecedingsectionnumber[\currentdescriptionnumber]% \preparethenumber{\??dd\currentdescription}\precedingsectionnumber\preparednumber \ifcase\descriptioncoupling \or \xdef\@@internalenumber{\doshowdnnumber}% \rawreference\s!num{#1:\@@internalenumber}{}% \or \xdef\@@internalenumber{\countervalue{\??dd\c!coupling\currentdescription}}% \rawreference\s!num{\currentdescription:\@@internalenumber}{}% \fi \egroup \fi % \makeprecedingsectionnumber[\currentdescriptionnumber]% % \preparethenumber{\??dd\currentdescription}\precedingsectionnumber\preparednumber \disablepseudocaps % sorry, uppercase causes troubles \doattributes % \nocase primitive needed {\??dd\currentdescription}\c!headstyle\c!headcolor % todo: sub as well {\descriptionparameter\c!command{\showdntext\domakednnumber}}% hook for taco \iflocation\ifcase\descriptioncoupling \else \edef\localconnection{\descriptionparameter\c!coupling:\@@internalenumber}% \doifreferencefoundelse\localconnection {\in[\localconnection]}\donothing % genereert > of < \fi\fi \doifnot{#1}{-}{\rawreference\s!num{#1}{\doshowdnnumber}}% \else % Why was this strange expansion needed? \edef\!!stringa{\showdnpuretext}% nog eens testen binnen \expanded \expanded{\doattributes{\??dd\currentdescription}\noexpand\c!headstyle\noexpand\c!headcolor {\noexpand\descriptionparameter\noexpand\c!command{\!!stringa}}}% %TH BUGFIX \doifnot{#1}{-}{\rawreference\s!num{#1}{}}% \fi} \protect \mainlanguage [en] \defineenumeration [test] [text=Test, number=no, location=hanging] \starttext \starttest What's that? \stoptest \stoptext --------------010900030106000109040800 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------010900030106000109040800--