From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38046 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: chapter without number but in table of contents Date: Mon, 17 Dec 2007 13:55:46 +0100 Message-ID: <115224fb0712170455n24040f51h7f5e82e4d5be6346@mail.gmail.com> References: <115224fb0712150748q4e5f390br2f74a8b89fe0fa58@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 1197896227 11384 80.91.229.12 (17 Dec 2007 12:57:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2007 12:57:07 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 17 13:57:17 2007 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 1J4FX2-0004Ky-5i for gctc-ntg-context-518@m.gmane.org; Mon, 17 Dec 2007 13:57:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FCA61FB95; Mon, 17 Dec 2007 13:56:57 +0100 (CET) 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 27511-03-2; Mon, 17 Dec 2007 13:56:23 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4CE341FBEB; Mon, 17 Dec 2007 13:56:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30D381FAE5 for ; Mon, 17 Dec 2007 13:56:21 +0100 (CET) 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 27448-03 for ; Mon, 17 Dec 2007 13:55:46 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by ronja.ntg.nl (Postfix) with ESMTP id E39CC1FC21 for ; Mon, 17 Dec 2007 13:55:46 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so1550323uge.50 for ; Mon, 17 Dec 2007 04:55:46 -0800 (PST) Original-Received: by 10.67.29.12 with SMTP id g12mr2920102ugj.12.1197896146502; Mon, 17 Dec 2007 04:55:46 -0800 (PST) Original-Received: by 10.66.252.15 with HTTP; Mon, 17 Dec 2007 04:55:46 -0800 (PST) In-Reply-To: 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:38046 Archived-At: 2007/12/15, Patrick Gundlach : > Hello Wolfgang, > > >> I know that this must be an faq and I seem to have lost my context > >> knowledge: > >> > >> I'd like to get an unnumbered chapter, but it should appear in the > >> table of contents. This is what I've tried so far: > >> > >> -------------- > >> \completecontent > >> [alternative=c] > >> > >> \definehead[mychapter][chapter] > >> \setuphead [mychapter][number=no] > > > > add incrementnumber=list to \setuphead > > This doesn't seem to work: > > -------------------------------------------------- > \starttext > > \completecontent > [alternative=c] > > \chapter{chapter1} > \chapter{chapter2} > \chapter{chapter3} > > \definehead[mychapter][chapter] > \setuphead [mychapter][number=no,incrementnumber=list] > > \mychapter{chapter4} > > \stoptext > -------------------------------------------------- > > I'd like to have an (unnumbered) entry for 'chapter4' in the table of > contents. > > > Did I misunderstand your suggestion perhaps? > > My version is: > ConTeXt ver: 2007.01.12 15:56 MKII fmt: 2007.10.10 int: english/english > > Patrick You should take a look into core sec and you will see you need also the coupling key, the following setup did work. \definehead[mychapter][chapter] \setuphead [mychapter][coupling=chapter,incrementnumber=list] \starttext \completecontent \chapter{Chapter 1} \mychapter{Chapter 2} \stoptext 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 ___________________________________________________________________________________