From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23784 Path: news.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re: No partial contents for parts after the first Date: Fri, 25 Nov 2005 19:24:54 +0100 Message-ID: <1181515002.20051125192454@iol.it> References: <676436556.20051124202641@iol.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1132943204 14985 80.91.229.2 (25 Nov 2005 18:26:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2005 18:26:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 25 19:26:29 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EfiGR-00011T-3C for gctc-ntg-context-518@m.gmane.org; Fri, 25 Nov 2005 19:25:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D80FD12895; Fri, 25 Nov 2005 19:25:38 +0100 (CET) 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 08660-01-3; Fri, 25 Nov 2005 19:25:35 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 732E81287A; Fri, 25 Nov 2005 19:25:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDE7512891 for ; Fri, 25 Nov 2005 19:25:33 +0100 (CET) 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 08568-07-2 for ; Fri, 25 Nov 2005 19:25:32 +0100 (CET) Original-Received: from mbox.dmi.unict.it (mbox.dmi.unict.it [151.97.252.131]) by ronja.ntg.nl (Postfix) with ESMTP id 703061287A for ; Fri, 25 Nov 2005 19:25:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by mbox.dmi.unict.it (Postfix) with ESMTP id CE421519DB for ; Fri, 25 Nov 2005 19:25:31 +0100 (CET) Original-Received: from mbox.dmi.unict.it ([127.0.0.1]) by localhost (mbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10642-05 for ; Fri, 25 Nov 2005 19:25:30 +0100 (CET) Original-Received: from oblomov.dmi.unict.it (oblomov.dmi.unict.it [151.97.252.27]) by mbox.dmi.unict.it (Postfix) with ESMTP id A87F2519DA for ; Fri, 25 Nov 2005 19:25:30 +0100 (CET) X-Mailer: The Bat! (v3.5.25) Professional X-Priority: 3 (Normal) Original-To: mailing list for ConTeXt users In-Reply-To: <676436556.20051124202641@iol.it> X-Virus-Scanned: by amavisd-new at dmi.unict.it X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:23784 Archived-At: Thursday, November 24, 2005 Giuseppe Bilotta wrote: > I'm using the latest ConTeXt reported here, and I'm noticing > that partial contents for the second, third etc part are not > available. I have a bunch of files each of which goes like > \part{some part} > Some text (not always) > \placecontent > \chapter{some chapter} > Each of this file is \input from the master file. However, > only in the first part you actually see the (part-specific) > content: every other part reports > system : part,chapter,section,subsection not found/processed > The setup for the contents is as follows: > \setupcombinedlist[content] > [interaction=3Dall, > partnumber=3Dno, > alternative=3Dc, > level=3Dsubsection] > \setuphead[part][alternative=3Dmiddle,placehead=3Dyes,resetnumber=3Dno] > The problem is the 'resetnumber': if I take that off, > everything works perfectly. I've been debugging this, and the reason for the thing not coming up for parts after the first is that when resetnumber=3Dno the current level is not properly detected: in one case you get \currentlevel ->:1 in the other \currentlevel ->:2:2:4:2 Which is obviously wrong. Indeed, the problem is here: \listentry{part}{1}{1}{Introduction}{2::1:0:0:0:0:0:0::7}{8} \listentry{chapter}{2}{1}{Presentation}{2::1:1:0:0:0:0:0::8}{9} \listentry{section}{3}{1.1}{History and motivation}{2::1:1:1:0:0:0:0::8}{9} \listentry{chapter}{11}{2}{The basics}{2::1:2:0:0:0:0:0::12}{13} \listentry{section}{12}{2.1}{Notation}{2::1:2:1:0:0:0:0::12}{13} (more stuff) \listentry{subsection}{78}{2.4.2}{Scaling the coordinate system}{2::1:2:4:2= :0:0:0::31}{32} \listentry{part}{79}{2}{Mathematical tools}{2::2:2:4:2:0:0:0::34}{35} \listentry{chapter}{82}{3}{B=E9zier cubic analysis}{2::2:3:0:0:0:0:0::35}{3= 6} OOOPSIE! Since resetnumber=3Dno, the listentry keeps the old settings for chapter, section & the like. This is obviously wrong. Even if the number is not reset, the sectionformat *must* be reset, since at the beginning of the new higher section(level) you are not in the previous one anymore. So for example when starting a new part (with resetnumber=3Dno), and until the first chapter of the new part is started we are in chapter 0 for that part, not in chapter 'last-chapter-from-previous-part'. Can this be fixed? --=20 Giuseppe "Oblomov" Bilotta