ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Yue Wang <yuleopen@gmail.com>,
	 mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Is there some ways to group sections in a given chapter together in toc?
Date: Mon, 01 Sep 2008 12:04:48 +0200	[thread overview]
Message-ID: <48BBBE40.4040803@wxs.nl> (raw)
In-Reply-To: <68bfdc900808311102g7b24e661ma47bee6c12bb4faa@mail.gmail.com>

Yue Wang wrote:
> Hi, Hans:
> 
> I am designing a Table Of Contents now. Here is what it should like:
> 
> Table of Contents (with zapfino font, of course~)
> 
> chapter 1  chapter2  chapter3
> sec1.1       sec2.1     sec 3.1
> sec1.2       sec2.1     sec 3.2
> sec1.3                       sec 3.3
> sec1.4
> 
> I think I should create a frame for each chapter and its sections.
> However, whether the inbetween key or the command key is hard to add a
> command before chapter1 (use before key) and after sec1.4 (cannot use
> after key for chapter 1) at the same time to group them all together.
> 
> Is this design possible in ConTeXt? How can I do this? Thank you!

best direct such questions to the list

\starttext

\placelist[section][criterium=chapter,number=2]

\chapter{first}
\section{a}
\section{b}
\chapter{second}
\section{c}
\section{d}

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


           reply	other threads:[~2008-09-01 10:04 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <68bfdc900808311102g7b24e661ma47bee6c12bb4faa@mail.gmail.com>]

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=48BBBE40.4040803@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=yuleopen@gmail.com \
    /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).