From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51449 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: Thu, 25 Jun 2009 20:15:53 +0800 Message-ID: <68bfdc900906250515n5ceb2cb4uafaf1e187eca1311@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 1245932219 3961 80.91.229.12 (25 Jun 2009 12:16:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2009 12:16:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 25 14:16:52 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 1MJnso-0001AX-Jw for gctc-ntg-context-518@m.gmane.org; Thu, 25 Jun 2009 14:16:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EC3B51FB5A; Thu, 25 Jun 2009 14:16:44 +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 11891-02; Thu, 25 Jun 2009 14:16:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B68E1FADB; Thu, 25 Jun 2009 14:16:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1D8721FADB for ; Thu, 25 Jun 2009 14:16:04 +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 07354-04-2 for ; Thu, 25 Jun 2009 14:15:55 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id E7F9C1FA41 for ; Thu, 25 Jun 2009 14:15:55 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.248]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n5PCFs6e030052 for ; Thu, 25 Jun 2009 14:15:54 +0200 Original-Received: by rv-out-0708.google.com with SMTP id k29so448530rvb.2 for ; Thu, 25 Jun 2009 05:15:53 -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=TrHvgYlyIBBBXaCA0ws49LQOZmskEQIFCyhrMVh5t6A=; b=O/f4x6qMc6EWpz9o4mbAWHh60ZbHaHC5zEluBGTswoFhMbyT07ofXe89QCQPMZxwBf Ru1SZft3pKNF5NB5vpVBCjpFmGMk0dOuSR1sZqe2C5mwZ15pnGJ9IW2VM3N9IfYTCiTh CoTSCmjp9BCkC5wDhPgSwpyB0WqLWhQyInFvM= 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=d1TE8GuVVHVq9jcMBPrgwT2CyNJGOpZWjN16rV1aTwo1DrRQZOpjltMIU+ba7GIY3d ATW4zi069zL3Bh+hfqwkyNkyTIQNKu3yW3LjDLhzE3ODvIb+DD3AnxoI6WNFIxx+x5P9 geWKpIaZ5TpbeHsRnt4fCidGfJFY33piDWROE= Original-Received: by 10.140.139.3 with SMTP id m3mr2213512rvd.64.1245932153505; Thu, 25 Jun 2009 05:15:53 -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.248; 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: 249829700 - e4745f47026b - 20090625 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:51449 Archived-At: any help? 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 ___________________________________________________________________________= ________