From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36421 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: itemize start=2 Date: Sat, 8 Sep 2007 12:29:06 +0200 Message-ID: <6faad9f00709080329k3d65fea1x1dad1b5650494cab@mail.gmail.com> References: <46E06742.32214.25C5447@wwl.musensturm.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189262172 2983 80.91.229.12 (8 Sep 2007 14:36:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 14:36:12 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 08 16:36:12 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IU1Pm-0007n5-CY for gctc-ntg-context-518@m.gmane.org; Sat, 08 Sep 2007 16:36:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 448B51FB27; Sat, 8 Sep 2007 16:35:30 +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 01329-03-2; Sat, 8 Sep 2007 16:35:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D9CB42004A; Sat, 8 Sep 2007 12:29:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B87D82004A for ; Sat, 8 Sep 2007 12:29:13 +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 12876-03-2 for ; Sat, 8 Sep 2007 12:29:08 +0200 (CEST) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by ronja.ntg.nl (Postfix) with ESMTP id F2D1120037 for ; Sat, 8 Sep 2007 12:29:07 +0200 (CEST) Original-Received: by wa-out-1112.google.com with SMTP id m16so940799waf for ; Sat, 08 Sep 2007 03:29:06 -0700 (PDT) Original-Received: by 10.142.177.7 with SMTP id z7mr131376wfe.1189247346741; Sat, 08 Sep 2007 03:29:06 -0700 (PDT) Original-Received: by 10.143.44.6 with HTTP; Sat, 8 Sep 2007 03:29:06 -0700 (PDT) In-Reply-To: <46E06742.32214.25C5447@wwl.musensturm.de> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36421 Archived-At: On 9/6/07, Wolfgang Werners-Lucchini wrote: > Hallo! > > > > > > I have tried snippets like > > > > > > > > > > \setupitemgroup[[itemize][start=2] > > > > > \startitemize[n] > > > > > \item zwei > > > > > \item drei > > > > > \stopitemize > > > > > > > > > > but could'nt found a solution. > > > > It looks like a misfeature (ie. bug) to me. > > > > > But two questions remain: > > > > > > 1) I am wondering, how you find such answers. What is your > > strategie > > > searching the sources? > > > 2) What is that existing option 'start' for? Take this as an > > example > > > for question 1). > > > > As far as I can see, 'start' currently serves no purpose since it > > gets > > overridden in line 447 in > > \expanded{\setitemparameter{\itemlevel}{\c!start}{1}}% > > in core-itm.tex anyway. Try to comment out that line. > > > > The next problem lies a few lines below: > > > > \doifelsenothing{\getitemparameter\itemlevel\c!start} > > {\def\currentitemoffset{1}} > > > > {\def\currentitemoffset{\getitemparameter\itemlevel\c!start}% > > \letitemparameter\itemlevel\c!start\empty}% > > > > You need to say \edef instead of \def, otherwise the empty value > > will > > be used for calculating \currentitemoffset. > > > > How to search? It's difficult to tell, but in this particular > > case, > > you take a look into core-itm.tex (assuming you know where > > itemizations are. If you don't, you can execute "grep \setupitem *" > > in > > tex/context/base/.) Then, you search for \c!start and try to > > figure > > out where it is used. You find \setitemlevel. OK, great. What does > > it > > do there? It's supposed to change \currentitemoffset. If you want > > to check \currentitemoffset, you simply place > > (my debug: \currentitemoffset) > > at the end of \setitemlevel. Now, you either need to copy that > > definition on the top of your document (which will override the > > global > > one), or remake the formats with "texexec --make en" before > > running > > texexec on your document again. You will get some extra info on top > > of your itemization. It doesn't belong there, but you will remove it > > afterwards. (Did I forget to say that it might be wise to make a > > bacup > > of the original file?) Now when you remade the formats (or placed > > the > > definition on top of your file or to cont-new.tex) and compiled > > the > > document again, take a look at the result. > > > > Oh, well, you only get (my debug: ). \currentitemoffset seems to > > be empty. > > If I change the above /def to /edef I get (my debug: 1), but as a > sideeffect the counter is incremented and therefor is starting with 2 > then. Yes, that's true. > > Then try to put > > (I wanted to have: \getitemparameter\itemlevel\c!start) > > somewhere at the beginning of \setitemlevel, somewhere inbetween > > (after \expandex{...}) and somewhere at the end. It works at the > > beginning, then it gets reset to 1, and then it gets deleted. > > And they you try to figure out why. > > \letitemparameter\itemlevel\c!start\empty} > > commenting this line has too the above sideeffect that counting is > started with 2. Yes, the whole definition should be changed. I only pointed you to the problematic places, but there is some minor pitfall left. And I don't dare to touch anything since itemization definitions seem a bit complex to me. > But I don't understand the whole thing. > > If I understand you right, the c!start is for increasing the > itemizelevel NOT the numbering. So I wonder why the later is > affected. Perhaps the name doesn't fit best, but it seems to me that "itemizelevel" in that context increases the numbering, not the level (I might be wrong). Mojca ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________