From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51878 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: Re: context mkiv bug + related feature request + related question Date: Sat, 18 Jul 2009 19:51:35 +0800 Message-ID: <68bfdc900907180451o654e172bh40d44bf6357fce69@mail.gmail.com> References: <68bfdc900906212036w1ac276c8gb3d5e4274d5358b@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="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247918086 28928 80.91.229.12 (18 Jul 2009 11:54:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2009 11:54:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 18 13:54: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 1MS8Ux-0001sQ-QJ for gctc-ntg-context-518@m.gmane.org; Sat, 18 Jul 2009 13:54:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E409D1FB57; Sat, 18 Jul 2009 13:53:32 +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 07350-06; Sat, 18 Jul 2009 13:52:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C8EC1FB1D; Sat, 18 Jul 2009 13:52:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6F8A1FB1D for ; Sat, 18 Jul 2009 13:52:34 +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 08632-03 for ; Sat, 18 Jul 2009 13:52:08 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id BD14A1FA4C for ; Sat, 18 Jul 2009 13:52:03 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.242]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6IBpb7O021317 for ; Sat, 18 Jul 2009 13:51:52 +0200 Original-Received: by rv-out-0708.google.com with SMTP id f25so343947rvb.14 for ; Sat, 18 Jul 2009 04:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=lA0V8MAHUDn9hcRtEUAvfFABw4XSwSCEWVUKoa/35H4=; b=XhsSf2KVUZCtZ7N0teS+Htd7fE6pS5/R1UPOHShiKqmLikM1BsTVFIIDT0uzi6WxZF tWEn9EWBCbOQ3doXHQyT4POHIVxjExWWElbcoENcALN3CE8RG2B9N12sb/IGRDkhvi7/ kSqObRYzg1S86mgSNPPbLjTFkEXMB9bjYNHM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Qrpuqi00cFl5UFhHVdGC+lZiSvT7RvTyzASUbUemM93Boodx9e5WxLLneBkilWHK+n bGoXaVo1blmy4s1Spn0329HzrW2amKfBqOKJnsON14hBMkn3WjUzQFlgj2q7tM9+oGMw J4/pF7XLYK0GCWHJBIhxbGquCsktzLvx6zWDg= Original-Received: by 10.140.166.4 with SMTP id o4mr1365586rve.74.1247917895741; Sat, 18 Jul 2009 04:51:35 -0700 (PDT) In-Reply-To: <68bfdc900906212036w1ac276c8gb3d5e4274d5358b@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.198.242; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 262700130 - 57d9efbc1ee1 - 20090718 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:51878 Archived-At: 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=3D0 > \def\tocchap#1#2#3{\advance\chapcounter by 1 #1 #2% > =A0 =A0 =A0 =A0\placelist[section][criterium=3Dchapter,number=3D\chapcoun= ter]} > \starttext > \placelist[chapter][alternative=3Dcommand,command=3D\tocchap] > \chapter{hello} \section{hello} \section{hello} > \chapter{good} \section{good} \section{good} > \chapter{bad} \section{bad} \section{bad} > \stoptext > > 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. > > 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 =A0%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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________