From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43015 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: goto(box) and setuplist questions Date: Thu, 7 Aug 2008 09:48:16 +0200 Message-ID: <115224fb0808070048y6c6b483cxb6ef604f7c9130cf@mail.gmail.com> References: <326847810808040406wbd51741y48a9653abceec8d0@mail.gmail.com> <115224fb0808050416p1c7aba76ge84c453366370f15@mail.gmail.com> <326847810808060012s26711cd4xeaeda9d19f57f028@mail.gmail.com> <115224fb0808060145q728bcde5od601ca08c316047d@mail.gmail.com> <326847810808060316h640a76c4ra7c60489fa63c7a3@mail.gmail.com> <115224fb0808060626l8112c83o6dfc946d2423e48e@mail.gmail.com> <326847810808060715ibda42d9i82c32362a121119a@mail.gmail.com> <115224fb0808060759l55c5ec59n321e26f9ca2e6065@mail.gmail.com> <326847810808060907y6e824a40s94006921c4abbc9b@mail.gmail.com> <326847810808061145o7e4471d0w8cf3af738edd6787@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 1218095411 8711 80.91.229.12 (7 Aug 2008 07:50:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 07:50:11 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 07 09:51:02 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 1KR0Gx-00017O-Ou for gctc-ntg-context-518@m.gmane.org; Thu, 07 Aug 2008 09:50:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B2881FC77; Thu, 7 Aug 2008 09:49:59 +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 05131-03-3; Thu, 7 Aug 2008 09:49:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CCA561FBEF; Thu, 7 Aug 2008 09:49:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BFA221FBDB for ; Thu, 7 Aug 2008 09:48: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 05131-03-2 for ; Thu, 7 Aug 2008 09:48:18 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by ronja.ntg.nl (Postfix) with ESMTP id 406C31FBEF for ; Thu, 7 Aug 2008 09:48:16 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id c8so52164ana.14 for ; Thu, 07 Aug 2008 00:48:16 -0700 (PDT) Original-Received: by 10.100.92.9 with SMTP id p9mr1635211anb.46.1218095296080; Thu, 07 Aug 2008 00:48:16 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Thu, 7 Aug 2008 00:48:16 -0700 (PDT) In-Reply-To: <326847810808061145o7e4471d0w8cf3af738edd6787@mail.gmail.com> 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:43015 Archived-At: On Wed, Aug 6, 2008 at 8:45 PM, Alan Stone wrote: >>> The better way is to define you own list alternative. >>> >>> \define[3]\ChapterList >>> {\hbox >>> {\hbox to .5em{#1}\hskip.5em >>> \vtop{\hsize150pt\relax#2}% >>> \hfil#3}} >>> >>> \setuplist[chapter][alternative=command,command=\ChapterList] >> >> I'll try that... > > #1, #2, #3 being parameters which can be passed to \ChapterList, aka > \ChapterList[#1,#2,#3]. Is that correct ? Each lis entry has three argument: #1: The section number #2: The header text #3: The page number To define your own format for the list entry in the ToC you need a new command with three argument like \def\MyCommand#1#2#3 and use it in \setuplist with \setuplist[...][command=\MyCommand]. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________