From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51879 Path: news.gmane.org!not-for-mail From: Mohamed Bana Newsgroups: gmane.comp.tex.context Subject: Re: context mkiv bug + related feature request + related question Date: Sat, 18 Jul 2009 14:45:19 +0100 Message-ID: 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: multipart/mixed; boundary="===============1972514308==" X-Trace: ger.gmane.org 1247924890 16065 80.91.229.12 (18 Jul 2009 13:48:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2009 13:48:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 18 15:48:03 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 1MSAGg-0007mR-Q8 for gctc-ntg-context-518@m.gmane.org; Sat, 18 Jul 2009 15:48:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AC2681FB77; Sat, 18 Jul 2009 15:47:41 +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 16089-01; Sat, 18 Jul 2009 15:46:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E1C461FB14; Sat, 18 Jul 2009 15:46:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5BBC51FB14 for ; Sat, 18 Jul 2009 15:46:39 +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 14447-04 for ; Sat, 18 Jul 2009 15:46:11 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id 555221FA41 for ; Sat, 18 Jul 2009 15:45:56 +0200 (CEST) Original-Received: from mail-bw0-f207.google.com (mail-bw0-f207.google.com [209.85.218.207]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6IDjJqt018660 for ; Sat, 18 Jul 2009 15:45:45 +0200 Original-Received: by bwz3 with SMTP id 3so1177044bwz.2 for ; Sat, 18 Jul 2009 06:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hUXQQnDg65o8uuC5v2yiB4DmPIYuTmZ69hz3ghm7y2M=; b=oid28JpSZ526RUoZA0mNqwZxGG/ctE0sqgiNeGFnivJPFrsT+c0NSypUDrWPZhmS8T UUkTyqnAsW2Irco04kO+dN6RY5A4J17BXay4nwGNav9jiNvsPsV5MyW1PamdBxqCpwkb 5K/V2I2ACyqFdUuFfqRTuSz2Q1MBFnE6MjIB4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WuSZMrQiZcScegDeQUnPqERpg8RBvcGg2IRdoOZA/VqgvxJRNUQ2dX6tmCFV32H1Ch p3VHfHoo8KAZ2fiFL1GQ9s7vDNfR4A9UBBRYgNj5mplMfrtkXUNSOtWcamKbf7h8gVVh QAKX17xh8rdaInaRnihPuNcw9orWgKoL38Usc= Original-Received: by 10.103.224.17 with SMTP id b17mr1180468mur.61.1247924719190; Sat, 18 Jul 2009 06:45:19 -0700 (PDT) In-Reply-To: <68bfdc900907180451o654e172bh40d44bf6357fce69@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.207; 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: 262726065 - 640f1e6ac652 - 20090718 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:51879 Archived-At: --===============1972514308== Content-Type: multipart/alternative; boundary=001636a7d93f9803aa046efb1ddf --001636a7d93f9803aa046efb1ddf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit i'd like to ask what sort of regression testing you guys are doing. it's very clear that things are constantly breaking, and even trivial ones but aren't being spotted. 2009/7/18 Yue Wang > 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 > > > > 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 %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 > > ___________________________________________________________________________________ > --001636a7d93f9803aa046efb1ddf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable i'd like to ask what sort of regression testing you guys are doing. =C2= =A0it's very clear that things are constantly breaking, and even trivia= l ones=C2=A0but aren't being spotted.

2009/7/18 Yue Wang <yuleopen@gmail.com>
This bug is still not solved in the current= context mkiv version.

On Mon, Jun 22, 2009 at 11:36 AM, Yue Wang<yuleopen@gmail.com> 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_Conten= ts (altough it
> doesn't show toc horizontally)
>
> \newcount\chapcounter \chapcounter=3D0
> \def\tocchap#1#2#3{\advance\chapcounter by 1 #1 #2%
> =C2=A0 =C2=A0 =C2=A0 =C2=A0\placelist[section][criterium=3Dchapter,num= ber=3D\chapcounter]}
> \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 =C2=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 / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =C2=A0: http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive =C2=A0: https://foundry.supelec.fr/projects/contextrev/
wiki =C2=A0 =C2=A0 : http://contextgarden.net
___________________________________________________________________________= ________

--001636a7d93f9803aa046efb1ddf-- --===============1972514308== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1972514308==--