From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41727 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Unusual TOC Date: Tue, 17 Jun 2008 11:28:33 +0200 Message-ID: <115224fb0806170228x542203a9yad3205eeb69a2a5b@mail.gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1213695005 6431 80.91.229.12 (17 Jun 2008 09:30:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2008 09:30:05 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 17 11:30:48 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 1K8XWX-0001sn-Nz for gctc-ntg-context-518@m.gmane.org; Tue, 17 Jun 2008 11:30:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 37F7A1FC5D; Tue, 17 Jun 2008 11:29:55 +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 31582-01-6; Tue, 17 Jun 2008 11:29:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F4E21FCDB; Tue, 17 Jun 2008 11:29:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA79C1FC61 for ; Tue, 17 Jun 2008 11:29: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 31582-01-5 for ; Tue, 17 Jun 2008 11:28:36 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.157]) by ronja.ntg.nl (Postfix) with ESMTP id 28CC21FC39 for ; Tue, 17 Jun 2008 11:28:36 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so4151505ywm.74 for ; Tue, 17 Jun 2008 02:28:33 -0700 (PDT) Original-Received: by 10.150.186.21 with SMTP id j21mr12526564ybf.86.1213694913291; Tue, 17 Jun 2008 02:28:33 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Tue, 17 Jun 2008 02:28:33 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:41727 Archived-At: On Mon, Jun 16, 2008 at 8:45 PM, Maur=ED=ADcio wr= ote: > Hi, > > I'm typesetting a book where prose and verse alternate in > chapters, i.e., you have one chapter of prose, one of verse, one > of prose etc. > > I would like to generate a TOC for that book, but chapters have no > name or numbers. I was told by the author that the usual thing to > do is to take the first few words of each chapter and use those in > the index. > > I know how to do that using a few small tricks, but I would like > to know if there's a standard way to do that. Are you aware of > any? \defineselector[title][max=3D2,n=3D2] \setuplist [chapter] [width=3D0pt] \setuphead [chapter] [number=3Dno, incrementnumber=3Dlist] \starttext \start \setupselector[title][n=3D1] \completecontent \stop \chapter{\select{title}{Short header}{Long header version}} \chapter{\select{title}{Another header}{Another long version for the text}} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________