From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68753 Path: news.gmane.org!not-for-mail From: Mathieu DUPONT Newsgroups: gmane.comp.tex.context Subject: \definehead \setuphead new type included in a list such as TOC Date: Thu, 26 May 2011 12:15:44 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0584294011==" X-Trace: dough.gmane.org 1306426565 30236 80.91.229.12 (26 May 2011 16:16:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 May 2011 16:16:05 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Thu May 26 18:16: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 1QPdE7-0000q7-MV for gctc-ntg-context-518@m.gmane.org; Thu, 26 May 2011 18:15:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D812ECAD4A; Thu, 26 May 2011 18:15:57 +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 gppG3wBz8GQe; Thu, 26 May 2011 18:15:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC3A9CAD66; Thu, 26 May 2011 18:15:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 45521CAD66 for ; Thu, 26 May 2011 18:15:53 +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 c6HNlQPqx-Zf for ; Thu, 26 May 2011 18:15:51 +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 43F03CAD4A for ; Thu, 26 May 2011 18:15:50 +0200 (CEST) Original-Received: from col0-omc2-s3.col0.hotmail.com (col0-omc2-s3.col0.hotmail.com [65.55.34.77]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4QGFnO0027876 for ; Thu, 26 May 2011 18:15:50 +0200 Original-Received: from COL107-W64 ([65.55.34.72]) by col0-omc2-s3.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 May 2011 09:15:45 -0700 X-Originating-IP: [70.30.197.40] Importance: Normal X-OriginalArrivalTime: 26 May 2011 16:15:45.0307 (UTC) FILETIME=[2AD366B0:01CC1BC0] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.55.34.77; 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: 06EMgfNV3 - 28b62e4f8dc6 - 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:68753 Archived-At: --===============0584294011== Content-Type: multipart/alternative; boundary="_128d7ca1-db79-4d50-a869-ce84e2bb5c5f_" --_128d7ca1-db79-4d50-a869-ce84e2bb5c5f_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. Thanks ! \definehead[Abstract][title]\setuphead[Abstract][]\definehead[Intro][title]= \setuphead[Intro][] \starttext \startfrontmatter\placecontent\Abstract{ABSTRACT}\stopfrontmatter \startbodymatter\Intro{INTRODUCTION}\chapter{CHAPTER}\stopbodymatter \stoptext=20 Mathieu = --_128d7ca1-db79-4d50-a869-ce84e2bb5c5f_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

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 T= OC
3- not be counted (CHAPTER should be 1)

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

Thanks !

\definehead[Abstract][title]
\setuphead[Abstract]= []
\definehead[Intro][title]
\setuphead[Intro][]
<= div>
\starttext

\startfrontmatter
\placecontent
\Abstract{ABSTRACT}
\stopfrontmat= ter

\startbodymatter
\Intro{INTRODUCTION= }
\chapter{CHAPTER}
\stopbodymatter

\stoptext =3B


<= /div>
Mathieu

=
= --_128d7ca1-db79-4d50-a869-ce84e2bb5c5f_-- --===============0584294011== 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 ___________________________________________________________________________________ --===============0584294011==--