From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78276 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Strange bug with reversed itemize Date: Thu, 13 Sep 2012 18:49:35 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347576485 28008 80.91.229.3 (13 Sep 2012 22:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 22:48:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 14 00:48:08 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 1TCICZ-00076Z-Ts for gctc-ntg-context-518@m.gmane.org; Fri, 14 Sep 2012 00:48:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B54A410205; Fri, 14 Sep 2012 00:47: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 RL0boVaU6TWm; Fri, 14 Sep 2012 00:47:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2BC57101F4; Fri, 14 Sep 2012 00:47:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11EF6101F4 for ; Fri, 14 Sep 2012 00:47:56 +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 YdV1cz6-Ljsr for ; Fri, 14 Sep 2012 00:47:54 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 176BE101EF for ; Fri, 14 Sep 2012 00:47:53 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8DMloQE012660 for ; Fri, 14 Sep 2012 00:47:51 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 50526294.CB730.22826 ; Authuser adityam; 13 Sep 2012 18:47:48 EDT In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0THWKLOlp - 840a423c5f1a - 20120914 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:78276 Archived-At: On Thu, 13 Sep 2012, Aditya Mahajan wrote: > On Thu, 13 Sep 2012, Aditya Mahajan wrote: > >> On Thu, 13 Sep 2012, Otared Kavian wrote: >> >>> On 13 sept. 2012, at 02:34, Aditya Mahajan wrote: >>> >>>> For some reason, the numbering in itemize is affected by the value of >>>> userpage! >>>> >>>> \setupuserpagenumber[start=12] >>>> \starttext >>>> \startitemize[n,reverse] >>>> \item One >>>> \item Two >>>> \stopitemize >>>> \stoptext >>>> >>>> With ConTeXt 2012.09.11 20:36 I get >>>> >>>> 13. One >>>> 12. Two >>>> >>>> Any ideas? >>> >>> Yes it is a strange behaviour and it appears only when using mkiv and >>> reversed itemize, even with >>> \setuppagenumber[start=12] >>> instead of >>> \setupuserpagenumber[start=12] >>> Also the pagenumber remains unchanged with either of these commands, which >>> means that it's a bug. >>> >>> I tested your example with Context version 2011.11.29, mkiv and there >>> everything is correct. >> >> Thanks for testing. I also tested with 2012.07. > > I have been able to isolate the bug to the update on 2012.07.09; specifically > to this commit. > > http://repo.or.cz/w/context.git/blobdiff/6f124794f7dc253f8b83f2517c26ce17e50d66ff..refs/heads/origin:/tex/context/base/strc-num.mkiv > > If I replace the current version of strc-num.mkiv with the version from > 2012.07.09: > http://repo.or.cz/w/context.git/blob_plain/6f124794f7dc253f8b83f2517c26ce17e50d66ff:/tex/context/base/strc-num.mkiv > > then the numbering is correct. > > However, I cannot figure out what is causing the bug in that change. The bug disappears if I add \setupstructurecounting[start=0] or \setupstructurecounting[start=\zerocount] in the test file! Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________