From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68782 Path: news.gmane.org!not-for-mail From: Mathieu DUPONT Newsgroups: gmane.comp.tex.context Subject: Re: \definehead \setuphead new type included in a list such as TOC Date: Fri, 27 May 2011 10:08:11 -0400 Message-ID: References: , Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0619735110==" X-Trace: dough.gmane.org 1306505309 23981 80.91.229.12 (27 May 2011 14:08:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 14:08:29 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 16:08:25 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 1QPxiD-0000Ko-78 for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2011 16:08:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2476ACAD14; Fri, 27 May 2011 16:08:24 +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 Es0du57IW6en; Fri, 27 May 2011 16:08:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D87CCAD22; Fri, 27 May 2011 16:08:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E815CAD22 for ; Fri, 27 May 2011 16:08:20 +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 kqeF0W7Dmtrj for ; Fri, 27 May 2011 16:08:18 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 227ACCAD14 for ; Fri, 27 May 2011 16:08:18 +0200 (CEST) Original-Received: from col0-omc2-s11.col0.hotmail.com (col0-omc2-s11.col0.hotmail.com [65.55.34.85]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4RE8G3I007258 for ; Fri, 27 May 2011 16:08:17 +0200 Original-Received: from COL107-W46 ([65.55.34.72]) by col0-omc2-s11.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 07:08:12 -0700 X-Originating-IP: [70.30.197.40] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 27 May 2011 14:08:12.0050 (UTC) FILETIME=[838ACF20:01CC1C77] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.55.34.85; country=US; region=WA; city=Redmond; postalcode=98052; latitude=47.6801; longitude=-122.1206; metrocode=819; areacode=425; http://maps.google.com/maps?q=47.6801,-122.1206&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bEMC8gQU - 7e677684fa62 - 20110527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:68782 Archived-At: --===============0619735110== Content-Type: multipart/alternative; boundary="_0e4f165b-64ef-43c6-84c5-60c922c23060_" --_0e4f165b-64ef-43c6-84c5-60c922c23060_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable That was very useful. Thanks again Wolfgang ! Mathieu From: schuster.wolfgang@googlemail.com Date: Thu=2C 26 May 2011 18:52:48 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] \definehead \setuphead new type included in a li= st such as TOC Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT:Hi=2C In the following example=2C I define 2 new heads=2C and I want them to : 1- inherits from Title (or Chapter would be fine)2- show in the TOC3- not b= e counted (CHAPTER should be 1) Is there an option I can put into \setuphead[Abstract][] so it gets include= d in the TOC ?That would be the easiest way of getting the three desired re= sults. Your own headings aren=92t shown in the TOC because you use \completeconten= twhich lists only the default numbered headings (\part=2C \chapter etc.) There are different solution: 1. Replace \completecontent with the following \title{Contents} \placelist[part=2Cchapter=2CAbstract=2CIntro=2C section= =2C...] 2. Redefine \completecontent (it=92s explained in the big manual): \definecombinedlist[content][part=2Cchapter=2CAbstract=2CIntro=2C section= =2C...] 3. Create your own combinedlist: \definecombinedlist[mycontent][part=2Cchapter=2CAbstract=2CIntro=2C secti= on=2C...] \setupheadtext[mycontent=3DContents] \starttext \completemycontent \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well=2C please add an entry to= the 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________ = --_0e4f165b-64ef-43c6-84c5-60c922c23060_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

That was very useful.

Thanks again Wolfgang !

<= strong>
Mathieu





From: schuster.wolfgang@googlemail.com
Date: Thu=2C 26 May = 2011 18:52:48 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context]= \definehead \setuphead new type included in a list such as TOC


Am 26= .05.2011 um 18:15 schrieb Mathieu DUPONT:


Hi=2C

In the follow= ing example=2C I define 2 new heads=2C and I want them to :

<= /div>
1- inherits from Title (or Chapter would be fine)
2- sh= ow in the TOC
3- not be counted (CHAPTER should be 1)
<= br>
Is there an option I can put into =3B\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 \com= pletecontent
which lists only the default numbered headings (\par= t=2C \chapter etc.)

There are different solution:<= /div>

1. Replace \completecontent with the following

 =3B =3B\title{Contents}
 =3B&n= bsp=3B\placelist[part=2Cchapter=2CAbstract=2CIntro=2C section=2C...]
<= div>
2. Redefine \completecontent (it=92s explained in the bi= g manual):

 =3B =3B\definecombinedlist[con= tent][part=2Cchapter=2CAbstract=2CIntro=2C section=2C...]

3. Create your own combinedlist:

 =3B&= nbsp=3B\definecombinedlist[mycontent][part=2Cchapter=2CAbstract=2CIntro=2C = section=2C...]

 =3B =3B\setupheadtext[myco= ntent=3DContents]

 =3B =3B\starttext
=

 =3B =3B\completemycontent

=
 =3B =3B\stoptext

Wolfgang
=


_________________________________________________________= __________________________ If your question is of interest to others as well=2C please add an entry to= the 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________
= --_0e4f165b-64ef-43c6-84c5-60c922c23060_-- --===============0619735110== 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 ___________________________________________________________________________________ --===============0619735110==--