From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51392 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: context mkiv bug + related feature request + related question Date: Mon, 22 Jun 2009 11:36:50 +0800 Message-ID: <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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245641895 13222 80.91.229.12 (22 Jun 2009 03:38:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2009 03:38:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 22 05:38:13 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 1MIaMG-0006W8-Fh for gctc-ntg-context-518@m.gmane.org; Mon, 22 Jun 2009 05:38:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 543F41FB64; Mon, 22 Jun 2009 05:38:11 +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 22358-03; Mon, 22 Jun 2009 05:37:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 882F31FAD7; Mon, 22 Jun 2009 05:37:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA4381FAD7 for ; Mon, 22 Jun 2009 05:37: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 30614-01-3 for ; Mon, 22 Jun 2009 05:36:53 +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 2DC5A1FA2B for ; Mon, 22 Jun 2009 05:36:53 +0200 (CEST) Original-Received: from mail-px0-f200.google.com (mail-px0-f200.google.com [209.85.216.200]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n5M3ap2Y021442 for ; Mon, 22 Jun 2009 05:36:52 +0200 Original-Received: by pxi38 with SMTP id 38so1668963pxi.16 for ; Sun, 21 Jun 2009 20:36:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=hzLTjd59+MVJpotOv1pSfJP1xvWbnKw2QsldHdbLXD0=; b=m1nh+SmzD9XWMFkjHxX4fxMATOROTg32Q8yLZXKJk4BlIDN4eNk0ZEG+ZuRJRfK3NK 1ifICWanE2TaLvwi3UTInZnEnM//eR1Frg0Va/b0zBd/gfQRQZzGDQbQhbCLHdq38caG ln8hB+C/Y9lRGtxRi+iHM+csoIG2NtgGSWWjk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Beq5YqkQRzv6pPfTXq5KxHy7GBr3MwAQtJw1Bg/NrAES+Zg4Y7bMITzMaZf9cAYKgy Q/EMZQXUQFm9qDVlbAz7YUEysmyEda1C0N3qt60RT3O02m4rUyswTRGw/S+6DimlGzyS KZ9uVqxFbee3uzOgtn6DW1lhSU2JHFMj4XjfU= Original-Received: by 10.141.18.1 with SMTP id v1mr4818320rvi.221.1245641810580; Sun, 21 Jun 2009 20:36:50 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.200; 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: 247108888 - ade38afceeef - 20090622 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:51392 Archived-At: 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 ___________________________________________________________________________________