From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68756 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \definehead \setuphead new type included in a list such as TOC Date: Thu, 26 May 2011 18:52:48 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============2142620311==" X-Trace: dough.gmane.org 1306428785 12670 80.91.229.12 (26 May 2011 16:53:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 May 2011 16:53:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 26 18:53:01 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QPdnu-0001Fk-Tm for gctc-ntg-context-518@m.gmane.org; Thu, 26 May 2011 18:52:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B20ECAD8D; Thu, 26 May 2011 18:52:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wBcR-Uv9lvSB; Thu, 26 May 2011 18:52:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84863CAD7F; Thu, 26 May 2011 18:52:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 825DACAD7F for ; Thu, 26 May 2011 18:52:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 65abUlifcbql for ; Thu, 26 May 2011 18:52:52 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 9888FCAD66 for ; Thu, 26 May 2011 18:52:52 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4QGqpb0028035 for ; Thu, 26 May 2011 18:52:52 +0200 Original-Received: by fxm18 with SMTP id 18so1187124fxm.14 for ; Thu, 26 May 2011 09:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id:x-mailer; bh=T9+V3qM0vp0yfOrmj2C3wJZe5Jm1ERkrHC2WB3g3Yi8=; b=oWg5bl0rYv2/NMdX+ph0zvctO0/GwpSb89J0Mar37jRjIhzM27s0razzDxKKv8cIIa 0skVVc9yhNcucyVnGBLHVBnwtDkFibNI0ga6cBVV+JhjxLwpVJGHQ5p/0/Lr5xcJphVh Xt3B/MGPSASitibIqlZTpgKBGq0PfA3vxcUI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=RkB4I9pSo0V5+eCBn2hcBTgIvAXOskuhC01IdlOWms958a8+hDX2Ujo6e6VnCKkj27 ZuLBptpihdnkXsukxXhI7XApQpBQxR7a1UyNqOGdjPfxi7OeAQoEg6AvunH5b+gCRDtw ok2ZeMuqVo4jWFfV0t35uY8rneF4/8lsBjlQU= Original-Received: by 10.223.159.14 with SMTP id h14mr1203670fax.20.1306428771764; Thu, 26 May 2011 09:52:51 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B294904.dip.t-dialin.net [91.41.73.4]) by mx.google.com with ESMTPS id g8sm371817fai.20.2011.05.26.09.52.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 May 2011 09:52:50 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06EMgQQLO - 91c0fd8bcae1 - 20110526 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:68756 Archived-At: --===============2142620311== Content-Type: multipart/alternative; boundary=Apple-Mail-31--443429824 --Apple-Mail-31--443429824 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT: >=20 > Hi, >=20 > In the following example, I define 2 new heads, and I want them to : >=20 > 1- inherits from Title (or Chapter would be fine) > 2- show in the TOC > 3- not be counted (CHAPTER should be 1) >=20 > Is there an option I can put into \setuphead[Abstract][] so it gets = included in the TOC ? > That would be the easiest way of getting the three desired results. Your own headings aren=92t shown in the TOC because you use = \completecontent which lists only the default numbered headings (\part, \chapter etc.) There are different solution: 1. Replace \completecontent with the following \title{Contents} \placelist[part,chapter,Abstract,Intro, section,...] 2. Redefine \completecontent (it=92s explained in the big manual): \definecombinedlist[content][part,chapter,Abstract,Intro, section,...] 3. Create your own combinedlist: \definecombinedlist[mycontent][part,chapter,Abstract,Intro, = section,...] \setupheadtext[mycontent=3DContents] \starttext \completemycontent \stoptext Wolfgang --Apple-Mail-31--443429824 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 26.05.2011 um 18:15 schrieb = Mathieu DUPONT:


Hi,

In the = following example, I define 2 new heads, and I want them to = :

1- inherits from Title (or Chapter would be = fine)
2- show in the TOC
3- not be counted (CHAPTER = should be 1)

Is there an option I can put = into \setuphead[Abstract][] so it gets included in the TOC = ?
That would be the easiest way of getting the three desired = results.

Your own = headings aren=92t shown in the TOC because you use = \completecontent
which lists only the default numbered = headings (\part, \chapter etc.)

There are = different solution:

1. Replace \completecontent = with the = following

  \title{Contents}
=   \placelist[part,chapter,Abstract,Intro, = section,...]

2. Redefine \completecontent (it=92s= explained in the big = manual):

  \definecombinedlist[content]= [part,chapter,Abstract,Intro, section,...]

3. = Create your own = combinedlist:

  \definecombinedlist[myc= ontent][part,chapter,Abstract,Intro, = section,...]

  \setupheadtext[mycontent= =3DContents]

  \starttext
  \completemycontent

 =  \stoptext

Wolfgang


= = --Apple-Mail-31--443429824-- --===============2142620311== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2142620311==--