From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71080 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: Thu, 8 Sep 2011 10:56:51 +0200 Message-ID: <67A5DAB0-6034-4304-A9A7-41A2F0EC4132@googlemail.com> References: 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 1315472230 28640 80.91.229.12 (8 Sep 2011 08:57:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2011 08:57:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 08 10:57:06 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 1R1aPx-0000O4-Sl for gctc-ntg-context-518@m.gmane.org; Thu, 08 Sep 2011 10:57:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A6C59CAF69; Thu, 8 Sep 2011 10:57:04 +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 OPJ2hr2ciSCh; Thu, 8 Sep 2011 10:57:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A384ECAF62; Thu, 8 Sep 2011 10:57:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3ECB8CAF62 for ; Thu, 8 Sep 2011 10:56:59 +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 aoDdoCqvAyzA for ; Thu, 8 Sep 2011 10:56:57 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 3906FCAF60 for ; Thu, 8 Sep 2011 10:56:57 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p888utD4019414 for ; Thu, 8 Sep 2011 10:56:56 +0200 Original-Received: by fxg9 with SMTP id 9so1789731fxg.14 for ; Thu, 08 Sep 2011 01:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=kKHWyPpyU7T9dIqi5RNWnTRPtjQHFTRzVOFFVAMosGM=; b=RVRN830bACLkA5BHHfWYLNWvYbuS4qwReDbhvQoyjvt4fnXU84NG06coDGxqNAkAq7 i4geAE66YnuQMAqBpa4KhBR9zNc3j9Wavo3cWpw695yWrRffJUNsiHmgfa5/ZUdFMoFM lASQxG6+3GuAvxaOzifDEFD2qLlDVZJZ+lwFo= Original-Received: by 10.223.54.17 with SMTP id o17mr213526fag.61.1315472215642; Thu, 08 Sep 2011 01:56:55 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B0EE3BB.dip.t-dialin.net [91.14.227.187]) by mx.google.com with ESMTPS id s13sm1057809fad.18.2011.09.08.01.56.53 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Sep 2011 01:56:54 -0700 (PDT) In-Reply-To: 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: 0aFu8UUyR - 8e7033166c77 - 20110908 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:71080 Archived-At: Am 08.09.2011 um 10:05 schrieb Aditya Mahajan: > In MkIV, \startitemize[n,repeat] gives a result that does not look right.= The numbers of the first level of itemize are missing. As you brought this up I=92ll add another problem with repeated items (it s= hows also your problem). When you can the number format for a subitem the p= arent number is also changed: \starttext \startitemize[n,repeat] \item Item 1. \startitemize[n] \item Item 1.1. \item Item 1.2. \stopitemize \item Item 2. \startitemize[n] \item Item 2.1. \item Item 2.2. \stopitemize \stopitemize \blank[2*line] \startitemize[n,repeat] \item Item 1. \startitemize[a] \item Item 1.a. \item Item 1.b. \stopitemize \item Item 2. \startitemize[a] \item Item 2.a. \item Item 2.b. \stopitemize \stopitemize \blank[2*line] \startitemize[n,repeat] \noitem \startitemize[a] \item Item 1.a. \item Item 1.b. \stopitemize \noitem \startitemize[a] \item Item 2.a. \item Item 2.b. \stopitemize \stopitemize \stoptext It can be solved with something like this: \def\doactualitemnumber {\begingroup \setupstructurecounter [\currentitemgroupcounter] [%\c!prefix=3D\v!no, \c!prefix=3D\getitemparameter\currentitemlevel\c!prefix, \c!prefixstopper=3D\getitemparameter\currentitemlevel\c!prefixstopper, \c!prefixseparatorset=3D\getitemparameter\currentitemlevel\c!prefixse= paratorset, \c!prefixconversion=3D\getitemparameter\currentitemlevel\c!prefixconv= ersion, \c!prefixconversionset=3D\getitemparameter\currentitemlevel\c!prefixs= eparatorset, \c!prefixset=3D\getitemparameter\currentitemlevel\c!prefixset, \c!prefixsegments=3D\getitemparameter\currentitemlevel\c!prefixsegmen= ts, \c!prefixconnector=3D\getitemparameter\currentitemlevel\c!prefixconne= ctor, \c!criterium=3D\getitemparameter\currentitemlevel\c!criterium, \c!numberorder=3D\ifconditional\reverselistitem\v!reverse\else\v!norm= al\fi, \c!numberstopper=3D\expdoif{\getitemparameter\currentitemlevel\c!plac= estopper}\v!yes{\getitemparameter\currentitemlevel\c!stopper}, %\c!numberseparatorset=3D, %\c!numberconversionset=3D, \c!numberconversion=3D\currentitemsymbol, \c!numbersegments=3D\ifx\currentrepeatstart\empty\else\currentrepeats= tart:\fi\number\currentitemlevel]% \ifconditional\reverselistitem \convertedstructurecounter[\currentitemgroupcounter]% [\number\current= itemlevel]% + \else\ifconditional\repeatlistitem + \dostepwiserecurse\currentrepeatstart\currentitemlevel\plusone + {\addvalue{repeatlist}{\getvalue{\@@globalitemsymbol\recurselevel}= }}% + \normalexpanded{\definestructureconversionset[\??op::\v!repeat][\rep= eatlist][n]}% + \convertedstructurecounter[\currentitemgroupcounter][\c!numberconver= sionset=3D\??op::\v!repeat,\c!numberconversion=3D] \else \convertedstructurecounter[\currentitemgroupcounter]% [\number\current= itemlevel]% \fi \dohandleitemreference \endgroup} but my solution above doesn=92t work with complex itemize constructs. 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 ___________________________________________________________________________= ________