From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20744 Path: news.gmane.org!not-for-mail From: Stuart Jansen Newsgroups: gmane.comp.tex.context Subject: Re: Necessary and optional comands for combinedcontent. Date: Wed, 08 Jun 2005 11:16:00 -0600 Organization: Guru Labs, L.C. Message-ID: <1118250960.8901.19.camel@localhost.localdomain> References: <200506080933.18491.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0288902479==" X-Trace: sea.gmane.org 1118250809 17218 80.91.229.2 (8 Jun 2005 17:13:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2005 17:13:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 08 19:13:20 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dg44s-0002ay-Tn for gctc-ntg-context-518@m.gmane.org; Wed, 08 Jun 2005 19:10:55 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 69F4D127E2; Wed, 8 Jun 2005 19:14: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 20570-04; Wed, 8 Jun 2005 19:14:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C680127E4; Wed, 8 Jun 2005 19:13:12 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5686B127E4 for ; Wed, 8 Jun 2005 19:13: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 20570-03 for ; Wed, 8 Jun 2005 19:13:10 +0200 (CEST) Original-Received: from mail.gurulabs.com (mail.gurulabs.com [67.137.148.7]) by ronja.ntg.nl (Postfix) with ESMTP id 0E05A127E2 for ; Wed, 8 Jun 2005 19:13:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by mail.gurulabs.com (Postfix) with ESMTP id 8B5B4A53A6 for ; Wed, 8 Jun 2005 11:13:08 -0600 (MDT) Original-Received: from mail.gurulabs.com ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 30717-04 for ; Wed, 8 Jun 2005 11:13:08 -0600 (MDT) Original-Received: from dhcp7.glwlan.gurulabs.com (dhcp7.glwlan.gurulabs.com [10.2.3.7]) by mail.gurulabs.com (Postfix) with ESMTP for ; Wed, 8 Jun 2005 11:13:08 -0600 (MDT) Original-To: mailing list for ConTeXt users In-Reply-To: <200506080933.18491.john@wexfordpress.com> X-Mailer: Evolution 2.2.1.1 X-Virus-Scanned: by amavisd-new at gurulabs.com X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20744 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20744 --===============0288902479== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-9RWCL/aJyyu2xD+YXVA9" --=-9RWCL/aJyyu2xD+YXVA9 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2005-06-08 at 09:33 +0000, John R. Culleton wrote: > There exist levels of commands: > \definecombinedlist > \setupcombinedlist >=20 > They seem to have similar options. Are both required? If I > define the list fully in \definecombinedlist what purpose does=20 > \setupcombined list serve in the ordinary case of a Table of > Contents? >=20 > A related question: can I place all the necessary parameters in > the \completecontent command and do without the other two > completely? ConTeXt already has the content combinedlist defined. So yes, you can just use \completecontent[option=3Dvalue]. \definecombinedlist is available so that you can define your own type of combinedlist in case the behavior of content does not match your needs. The \setupcommand and \command pairing is a standard ConTeXt idiom. A common usage is to define global behavior in the \setupcommand before \starttext and then apply local variations in the \command. Of course, \setupcommand can usually be called at any time, for example to change behavior between part one and part two of a book. If you haven't already, I suggest looking at cont-eni.pdf for more information. I like to make simple test cases and play with commands to understand them better. Below is an example you could use if needed. \starttext \completecontent %\completecontent[alternative=3Da] %\setupcombinedlist[content][alternative=3Dc]\placecontent %\setupinteraction[state=3Dstart]\placecontent[interaction=3Dall] \chapter{One} \section{foo} \input tufte \chapter{Two} \section{bar} \input tufte \stoptext --=20 Stuart Jansen Guru Labs, L.C. --=-9RWCL/aJyyu2xD+YXVA9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCpyfQwTOJ4P81PNARAl1JAJ4gEmn6S+JPW81NAbrQ3tkiDDv03wCfVn2g NdbhbSHzF9cxnE4COv5cwsg= =kMwP -----END PGP SIGNATURE----- --=-9RWCL/aJyyu2xD+YXVA9-- --===============0288902479== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0288902479==--