From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78393 Path: news.gmane.org!not-for-mail From: Stefan Rothe Newsgroups: gmane.comp.tex.context Subject: combinedlist: different behaviour in mkiv Date: Thu, 20 Sep 2012 10:04:42 +0200 Message-ID: <1348128282.3475.7.camel@pan> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348208583 31168 80.91.229.3 (21 Sep 2012 06:23:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 06:23:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 21 08:23:07 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 1TEwdn-0000zC-0t for gctc-ntg-context-518@m.gmane.org; Fri, 21 Sep 2012 08:23:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB276101E6; Fri, 21 Sep 2012 08:23:01 +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 IjQR0xAc52SI; Fri, 21 Sep 2012 08:23:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DE0D4101E7; Fri, 21 Sep 2012 08:22:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7DA1D101E7 for ; Thu, 20 Sep 2012 10:11:26 +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 rpOfGbTQ4MBK for ; Thu, 20 Sep 2012 10:11:25 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id AE4AE101E6 for ; Thu, 20 Sep 2012 10:11:25 +0200 (CEST) Original-Received: from everest.ch-meta.net (everest.ch-meta.net [80.74.155.30]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8K8BObW017758 for ; Thu, 20 Sep 2012 10:11:24 +0200 Original-Received: (qmail 7775 invoked from network); 20 Sep 2012 10:04:41 +0200 Original-Received: from 240-221.194-178.cust.bluewin.ch (HELO ?192.168.1.33?) (178.194.221.240) by everest.ch-meta.net with (AES256-SHA encrypted) SMTP; 20 Sep 2012 10:04:41 +0200 X-Mailer: Evolution 3.4.3-1 X-Bayes-Prob: 0.5 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.74.155.30; country=CH; latitude=47.0000; longitude=8.0000; http://maps.google.com/maps?q=47.0000,8.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Mailman-Approved-At: Fri, 21 Sep 2012 08:22:58 +0200 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:78393 Archived-At: Hi I have defined a two-level head structure with independent numbering. It works as intended with mkii, but with mkiv, the top-level number is prepended to all second-level heads in the table of contents. With mkii, I get: Part A First 1 One 2 Two ... with mkiv: Part A First A.1 One A.2 Two ... How can I fix this? Kind regards Stefan % Top level head \definehead [AgendaPart] [section] \setuphead [AgendaPart] [ownnumber=yes, number=yes, numbercommand={Part }, style=\bf\tfb] \newcounter\AgendaPartNumber \define [1] \agendapart { \doglobal\increment\AgendaPartNumber \AgendaPart{\Character{\AgendaPartNumber}}{#1} } % Second level head, idependently numbered \definehead [AgendaItem] [subsubsection] \setuphead [AgendaItem] [ownnumber=yes, number=yes, style=\bf] \newcounter\AgendaItemNumber \define [1] \agendaitem { \doglobal\increment\AgendaItemNumber \AgendaItem{\AgendaItemNumber}{#1} } \definelist [AgendaPart] \setuplist [AgendaPart] [width=1.5cm, style=bold, numbercommand={Part }] \definelist [AgendaItem] \setuplist [AgendaItem] [width=1.5cm, ownnumber=yes] \definecombinedlist [toc] [AgendaPart, AgendaItem] \setupcombinedlist [toc] [pagenumber=no] % Test \starttext \placetoc \agendapart{First} \agendaitem{One} \agendaitem{Two} \agendapart{Second} \agendaitem{Three} \agendaitem{Four} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________