From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71091 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: repeat option in itemize not working correctly Date: Fri, 9 Sep 2011 11:00:57 +0200 Message-ID: <7517DE93-E8A8-4C30-807B-2148E1C51564@googlemail.com> References: <67A5DAB0-6034-4304-A9A7-41A2F0EC4132@googlemail.com> <4E68DEBF.6030107@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315558892 9498 80.91.229.12 (9 Sep 2011 09:01:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2011 09:01:32 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 09 11:01:26 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 1R1wxf-0006QG-Vk for gctc-ntg-context-518@m.gmane.org; Fri, 09 Sep 2011 11:01:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 22AFCCAF7B; Fri, 9 Sep 2011 11:01:22 +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 1u0q5CYH4KgT; Fri, 9 Sep 2011 11:01:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBB87CAF71; Fri, 9 Sep 2011 11:01:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD89CCAF71 for ; Fri, 9 Sep 2011 11:01:16 +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 1CNohTMxwDIf for ; Fri, 9 Sep 2011 11:01:05 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id F3893CAF70 for ; Fri, 9 Sep 2011 11:01:04 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p89914Ex031266 for ; Fri, 9 Sep 2011 11:01:04 +0200 Original-Received: by fxg9 with SMTP id 9so3127913fxg.14 for ; Fri, 09 Sep 2011 02:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=GOScMw15i+xCj8TXGPChZWIzk0NBgCuqC4PmXtSAtGQ=; b=cAkerYn74FxwbHQbKuu+4FCbSOMHPA1kj5DyYly5UHDeG5mDZ7TaAb7Tpxg+hSO0xv gz33bm305IN8SI/8VefUyAUotmn1FXyAiKeHXvIMuY3fqUvLvM6n4Ie2bX6LhF8hYfBk PTRsB9yRgr4ZbYHAaE8IuPujh8qL3YiHOKQns= Original-Received: by 10.223.74.89 with SMTP id t25mr1418258faj.65.1315558863740; Fri, 09 Sep 2011 02:01:03 -0700 (PDT) Original-Received: from [192.168.2.31] (pD9EA7203.dip.t-dialin.net [217.234.114.3]) by mx.google.com with ESMTPS id n3sm2583386fae.25.2011.09.09.02.01.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Sep 2011 02:01:01 -0700 (PDT) In-Reply-To: <4E68DEBF.6030107@wxs.nl> X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 0rFux142f - 94933d9d9bb4 - 20110909 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:71091 Archived-At: Am 08.09.2011 um 17:26 schrieb Hans Hagen: > On 8-9-2011 10:56, Wolfgang Schuster wrote: > = >> It can be solved with something like this: > = > thanks for analyzing this > = >> \def\doactualitemnumber >> {\begingroup > > >> %\c!numberconversionset=3D, > = > ^^ we can use \c!numberconversionset=3Ditemgroup:\currentitemgroup, > = >> but my solution above doesn=92t work with complex itemize constructs. > = > and then add (someplace) in the define macro: > = > \definestructureconversionset[itemgroup:#1][\currentitemconversionset][\c= urrentitemsymbol]% > = > and at the end of the restarter: > = > \ifx\currentrepeatstart\empty > \let\currentitemconversionset\currentitemsymbol > \else > \edef\currentitemconversionset{\currentitemconversionset,\currentitemsymb= ol}% > \fi > = > which seems to work (baking a beta now) Thanks, the numbers are now correct. What=92s missing is a fix for the problem Aditya mentioned (missing number = for the first level item): \unexpanded\def\actualitemnumber {\ifconditional\repeatlistitem - \ifcase\currentitemlevel\or\else + \ifcase\currentitemlevel\else \doactualitemnumber \fi \else \doactualitemnumber \fi} and \noitem is broken with the changes in MkIV: \def\doitemgroupnoitem - {\doadvanceitem\donolistitem} + {\let\currentitemreference\empty + \doadvanceitem\donolistitem} 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 ___________________________________________________________________________= ________