From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40930 Path: news.gmane.org!not-for-mail From: Paul Gideon Dann Newsgroups: gmane.comp.tex.context Subject: Re: TOC columns Date: Wed, 07 May 2008 12:38:17 +0100 Message-ID: <482194A9.2020108@gmail.com> References: <48218051.60805@gmail.com> <48218BF4.1050108@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0360157824==" X-Trace: ger.gmane.org 1210160407 31631 80.91.229.12 (7 May 2008 11:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2008 11:40:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 07 13:40:43 2008 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 1Jti0W-0004TH-3s for gctc-ntg-context-518@m.gmane.org; Wed, 07 May 2008 13:40:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 417BA1FBC1; Wed, 7 May 2008 13:39:40 +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 28840-02; Wed, 7 May 2008 13:39:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 033751FBB9; Wed, 7 May 2008 13:39:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7363E1FBB9 for ; Wed, 7 May 2008 13:38:58 +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 28817-02-2 for ; Wed, 7 May 2008 13:38:25 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by ronja.ntg.nl (Postfix) with ESMTP id 2628F1FB8E for ; Wed, 7 May 2008 13:38:25 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so142385nfd.44 for ; Wed, 07 May 2008 04:38:25 -0700 (PDT) Original-Received: by 10.210.66.1 with SMTP id o1mr1735753eba.135.1210160304236; Wed, 07 May 2008 04:38:24 -0700 (PDT) Original-Received: from Lemmie.local ( [83.217.97.162]) by mx.google.com with ESMTPS id z33sm2638300ikz.0.2008.05.07.04.38.22 (version=SSLv3 cipher=RC4-MD5); Wed, 07 May 2008 04:38:23 -0700 (PDT) User-Agent: Thunderbird 3.0a1pre (Macintosh/2008043003) In-Reply-To: <48218BF4.1050108@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:40930 Archived-At: This is a multi-part message in MIME format. --===============0360157824== Content-Type: multipart/alternative; boundary="------------070702060802000808080903" This is a multi-part message in MIME format. --------------070702060802000808080903 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks, that's genius! However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading. That is, \placelist[section] generates the same content in both contexts. Paul Hans Hagen wrote: > Paul Gideon Dann wrote: > >> Hi there, >> >> I've got a table of contents for a document that's split into two >> large sections. I'm trying to display a centered heading for each >> section, and subsections listed in two columns underneath each section >> heading. Hopefully this illustrates something of what I'm trying to >> achieve: >> >> \midaligned{Section1} >> \startcolumns[n=2] >> Subsection1 >> .... >> \stopcolumns >> >> \midaligned{Section2} >> \startcolumns[n=2] >> Subsection1 >> .... >> \stopcolumns >> >> Does anyone know how to automate this for a table of contents? >> > > % \setuplist > % [chapter] > % [after={\startcolumns\placelist[section]\stopcolumns}] > > > ----------------------------------------------------------------- > 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 > ___________________________________________________________________________________ > --------------070702060802000808080903 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks, that's genius!  However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading.  That is, \placelist[section] generates the same content in both contexts.

Paul


Hans Hagen wrote:
Paul Gideon Dann wrote:
  
Hi there,

   I've got a table of contents for a document that's split into two 
large sections.  I'm trying to display a centered heading for each 
section, and subsections listed in two columns underneath each section 
heading.  Hopefully this illustrates something of what I'm trying to 
achieve:

\midaligned{Section1}
\startcolumns[n=2]
Subsection1
....
\stopcolumns

\midaligned{Section2}
\startcolumns[n=2]
Subsection1
....
\stopcolumns

Does anyone know how to automate this for a table of contents?
    

% \setuplist
%   [chapter]
%   [after={\startcolumns\placelist[section]\stopcolumns}]


-----------------------------------------------------------------
                                           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
___________________________________________________________________________________
  
--------------070702060802000808080903-- --===============0360157824== 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 ___________________________________________________________________________________ --===============0360157824==--