From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52664 Path: news.gmane.org!not-for-mail From: Xan Newsgroups: gmane.comp.tex.context Subject: Re: How can I start wiith 2 in itemize? Date: Thu, 03 Sep 2009 17:59:51 +0200 Message-ID: <4A9FE7F7.3060204@telefonica.net> References: <4A9ECDFD.10301@telefonica.net> <4A9FB82E.3020701@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251993631 15149 80.91.229.12 (3 Sep 2009 16:00:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 16:00:31 +0000 (UTC) Cc: mailing list for ConTeXt users To: Peter Rolf Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 03 18:00:22 2009 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.50) id 1MjEjV-0005ZS-Fv for gctc-ntg-context-518@m.gmane.org; Thu, 03 Sep 2009 18:00:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE985C9AAF; Thu, 3 Sep 2009 18:00:18 +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 8DzM+vCJrDwi; Thu, 3 Sep 2009 18:00:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE930C9A9C; Thu, 3 Sep 2009 18:00:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4079FC9A97 for ; Thu, 3 Sep 2009 18:00:02 +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 RRrT4AkWLNeA for ; Thu, 3 Sep 2009 17:59:59 +0200 (CEST) Original-Received: from ctsmtpout4.frontal.correo (outmailhost.telefonica.net [213.4.149.242]) by balder.ntg.nl (Postfix) with ESMTP id 1F744C9AAF for ; Thu, 3 Sep 2009 17:59:58 +0200 (CEST) Original-Received: from [172.26.0.7] (83.55.61.50) by ctsmtpout4.frontal.correo (7.2.056.6) (authenticated as dxpublica) id 4A4B30EA00EF69BA; Thu, 3 Sep 2009 17:59:51 +0200 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <4A9FB82E.3020701@gmx.net> 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:52664 Archived-At: En/na Peter Rolf ha escrit: > Xan schrieb: >> Hi, >> >> I want to start itemize with 2. >> I put \startitemize[n][start=2] but it does not work. >> > third and hopefully last try :D > > [strc-itm.mkii] > > \def\setitemlevel#1% > {\ifnum\currentitemlevel>\zerocount > \settrue\firstlistitem > % > % \expanded{\setitemparameter{\currentitemlevel}{\c!start}{1}}% *** > \doifinset{0}{#1}{\setitemparameter\currentitemlevel\c!start{0}}% > > \setcounter{\@@itemcounter\currentitemlevel}{\the\numexpr\getitemparameter\currentitemlevel\c!start-1\relax}% > *** > \doifelsenothing{\getitemparameter\currentitemlevel\c!start} > {\def\currentitemoffset{1}} > > {\def\currentitemoffset{\getitemparameter\currentitemlevel\c!start}% > \letitemparameter\currentitemlevel\c!start\empty}% > % > \def\tempnumber > {\countervalue{\@@itemcounter\currentitemlevel}}% > \doifelse{\getitemparameter\currentitemlevel\c!placestopper}\v!yes > {\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}} > {\let\tempsymbol\empty}% > \fi} > > > I get the correct numbers with the following example. > > \starttext > > \startitemize[n][start=2] > \item foo > \item bar > \stopitemize > > > \startitemize[n] > \item foo > \item bar > \stopitemize > > \stoptext > > > Thank you very much, Peter, very much. But one second: the code you put here, I suppose I have to copy-paste to this file. Is it correct? The *** are correct or is html bold (I read in plain text).? Can you clear me Now the strange is the "by default" the startitemize crazies at that point and before all were fine 8-D. Joke. At least I'm useful for detecting errors. Taco knows it ;-) Another joke. Regards, Xan. ___________________________________________________________________________________ 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 ___________________________________________________________________________________