From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51884 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: context mkiv bug + related feature request + related question Date: Sun, 19 Jul 2009 13:21:45 +0200 Message-ID: <4A6301C9.4000002@wxs.nl> References: <68bfdc900906212036w1ac276c8gb3d5e4274d5358b@mail.gmail.com> <68bfdc900907180451o654e172bh40d44bf6357fce69@mail.gmail.com> 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 1248002566 20116 80.91.229.12 (19 Jul 2009 11:22:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jul 2009 11:22:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 19 13:22:39 2009 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 1MSUTV-0006Ni-PA for gctc-ntg-context-518@m.gmane.org; Sun, 19 Jul 2009 13:22:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE1D01FADF; Sun, 19 Jul 2009 13:22:36 +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 14902-06; Sun, 19 Jul 2009 13:21:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 765961FA41; Sun, 19 Jul 2009 13:21:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 51EE71FA41 for ; Sun, 19 Jul 2009 13:21:55 +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 20854-02 for ; Sun, 19 Jul 2009 13:21:46 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id C974E1FA2B for ; Sun, 19 Jul 2009 13:21:46 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6JBLjFE009104 for ; Sun, 19 Jul 2009 13:21:46 +0200 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 28065-1840426 for ; Sun, 19 Jul 2009 13:21:45 +0200 User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <68bfdc900907180451o654e172bh40d44bf6357fce69@mail.gmail.com> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=15; city=Almelo; latitude=52.3500; longitude=6.6667; http://maps.google.com/maps?q=52.3500,6.6667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 262958420 - 886568131dd6 - 20090719 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:51884 Archived-At: Yue Wang wrote: > This bug is still not solved in the current context mkiv version. > > On Mon, Jun 22, 2009 at 11:36 AM, Yue Wang wrote: >> Hi, Hans: >> >> >> bug report : >> here is the test file. (old version of mkiv produce right result. >> current mkii result is also right) >> It is a bug introduced in this/last month. >> The code is a stripped down version of >> http://wiki.contextgarden.net/Horizontal_Table_of_Contents (altough it >> doesn't show toc horizontally) >> >> \newcount\chapcounter \chapcounter=0 >> \def\tocchap#1#2#3{\advance\chapcounter by 1 #1 #2% >> \placelist[section][criterium=chapter,number=\chapcounter]} >> \starttext >> \placelist[chapter][alternative=command,command=\tocchap] >> \chapter{hello} \section{hello} \section{hello} >> \chapter{good} \section{good} \section{good} >> \chapter{bad} \section{bad} \section{bad} >> \stoptext add \number in front of \listparameter\c!number in strc-lst.mkiv or just in front of your \chapcounter \number\listparameter\c!number (info passed to lua has to be expanded) actually, there is in mkii: \starttext \placelist[chapter][after={\placelist[section][criterium=local]}] \chapter{hello} \section{hello} \section{hello} \chapter{good} \section{good} \section{good} \chapter{bad} \section{bad} \section{bad} \stoptext but that does not yet work in mkiv >> feature request: >> >> btw, Hans, context should give an option to iterate through all the >> chapters/sections to do something tricky. >> using \chaptercounter is a really bad idea (the materials should >> follow strict rules, like cannot jump from chap 1 to chap 3). >> I think with mkiv it is able to achieve that. sure, but that's for later; the mkiv structure code has much more possibilities but first i want to have the standard features complete and debugged >> question: >> >> I want to show toc before each chapter, and the toc only shows the >> following chapter name in red. >> How can I do that? >> e.g. show the following before chapter 3 >> >> % A Page >> Chap1 >> sec 1 sec 2 sec 3 >> Chap2 >> sec 1 sec 2 sec 3 >> Chap 3 %in red >> sec 1 sec 2 sec 3 %in Red >> Chap4 >> sec 1 sec 2 sec 3 >> % Next Page >> Chapter 3 % title >> a lot of materials >> >> >> Yue Wang >> > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________