ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Yue Wang <yuleopen@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: context mkiv bug + related feature request + related question
Date: Sat, 18 Jul 2009 19:51:35 +0800	[thread overview]
Message-ID: <68bfdc900907180451o654e172bh40d44bf6357fce69@mail.gmail.com> (raw)
In-Reply-To: <68bfdc900906212036w1ac276c8gb3d5e4274d5358b@mail.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_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
___________________________________________________________________________________


  parent reply	other threads:[~2009-07-18 11:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-22  3:36 Yue Wang
2009-06-25 12:15 ` Yue Wang
2009-07-18 11:51 ` Yue Wang [this message]
2009-07-18 13:45   ` Mohamed Bana
2009-07-19 10:27     ` Hans Hagen
2009-07-19 11:21   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68bfdc900907180451o654e172bh40d44bf6357fce69@mail.gmail.com \
    --to=yuleopen@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).