From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78300 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Strange bug with reversed itemize Date: Sat, 15 Sep 2012 10:03:14 +0200 Message-ID: References: <123393FA-6BA3-473D-BD6A-55DEE1BC4466@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347696202 13779 80.91.229.3 (15 Sep 2012 08:03:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2012 08:03:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 15 10:03:26 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 1TCnLa-0004wH-6o for gctc-ntg-context-518@m.gmane.org; Sat, 15 Sep 2012 10:03:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0CD810201; Sat, 15 Sep 2012 10:03:21 +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 nBjqQaZOGpYL; Sat, 15 Sep 2012 10:03:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D2CA8101F8; Sat, 15 Sep 2012 10:03:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60BB6101F8 for ; Sat, 15 Sep 2012 10:03:19 +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 TtjhJad2PuKW for ; Sat, 15 Sep 2012 10:03:18 +0200 (CEST) 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 493C5101F6 for ; Sat, 15 Sep 2012 10:03:18 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8F83HDY012088 for ; Sat, 15 Sep 2012 10:03:17 +0200 Original-Received: by bkcjc3 with SMTP id jc3so1732982bkc.14 for ; Sat, 15 Sep 2012 01:03:17 -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 :content-transfer-encoding:message-id:references:to:x-mailer; bh=va15n+2mDL48dmV3uItuXR8VhJTmr6JnyqwIkOujXUw=; b=QahQgZ1mcooc3f1335PpgakH7Vjg7UITCx2n1f9nFcyfmbuksWckJfmMLZrP2LdsrW vYq+2on5wAEVsqdFzfAm+nGVbSDTsPGPotMoQqjyO4nOKEAg2Yizq/Xpdw+vGw5+ryyy zJKmUZ2fV9I7EfZoJlSe7WTt7SLVDHxzFWH7Wh0JGm3RAeirbGvjL1Icj+Bn8PcX1xAl YTnZy6CRijgOnXWB7On0Xp8P2brfYByWYputbdvJdGzcIN8LlmFFLnrMrXtFvE8ariN9 zM3NEaAZqS1+sUcjmLy8Lm7LRnxAFGfq8I0WUqYBh3cp0Y/bBix3Uh2RtzGEB3m9/9JD Ox9g== Original-Received: by 10.204.9.194 with SMTP id m2mr2462271bkm.132.1347696196885; Sat, 15 Sep 2012 01:03:16 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf9f6a.pool.mediaWays.net. [77.191.159.106]) by mx.google.com with ESMTPS id y20sm2181329bkv.11.2012.09.15.01.03.15 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 15 Sep 2012 01:03:16 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1486) 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: 0RHXk3hhS - 0b0eb487e5e8 - 20120915 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:78300 Archived-At: Am 15.09.2012 um 00:06 schrieb Aditya Mahajan : > Thanks for the diagnosis. What will be a good way to fix this? I think that > > \expanded{\setupcounter[#1][\c!start=\ifx\p_start\empty0\else\number\p_start\fi.,...]} > > should work (but I haven't tested it yet). I would do the expansion here but with \normalexpanded. \def\strc_counter_setup_using_parameter#1#2% name \someparameter {\edef\p_start{#2\c!start}% %\setupcounter \normalexpanded{\setupcounter [#1] [ \c!start=\ifx\p_start\empty0\else\number\p_start\fi, \c!state=#2\c!state, % beware, "" == start \c!way=#2\c!way, % \c!prefix=#2\c!prefix, \c!prefixseparatorset=#2\c!prefixseparatorset, \c!prefixconversion=#2\c!prefixconversion, \c!prefixconversionset=#2\c!prefixconversionset, \c!prefixstarter=#2\c!prefixstarter, \c!prefixstopper=#2\c!prefixstopper, \c!prefixset=#2\c!prefixset, \c!prefixsegments=#2\c!prefixsegments, \c!prefixset=#2\c!prefixset, \c!prefixconnector=#2\c!prefixconnector, % \c!numberseparatorset=#2\c!numberseparatorset, \c!numberconversion=#2\c!numberconversion, \c!numberconversionset=#2\c!numberconversionset, \c!numberstarter=#2\c!numberstarter, \c!numberstopper=#2\c!numberstopper, % \c!numbersegments=#2\c!numbersegments]} \c!numbersegments=#2\c!numbersegments]}} 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 ___________________________________________________________________________________