From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20586 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: Suppreesin section header Date: Mon, 30 May 2005 19:57:56 +0000 Organization: WexfordPress Message-ID: <200505301957.57196.john@wexfordpress.com> References: <200505301104.13897.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117497624 13427 80.91.229.2 (31 May 2005 00:00:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 May 2005 00:00:24 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue May 31 02:00:13 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 1DcuAd-0005oE-LT for gctc-ntg-context-518@m.gmane.org; Tue, 31 May 2005 01:59:47 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B14B9127FC; Tue, 31 May 2005 02:02:28 +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 07998-10; Tue, 31 May 2005 02:02:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C95E0127F8; Tue, 31 May 2005 02:02:24 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30BAF127F8 for ; Tue, 31 May 2005 02:02:23 +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 08132-01 for ; Tue, 31 May 2005 02:02:22 +0200 (CEST) Original-Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by ronja.ntg.nl (Postfix) with ESMTP id 0E63A127F2 for ; Tue, 31 May 2005 02:02:21 +0200 (CEST) Original-Received: from 69-174-190-44.frdrmd.adelphia.net ([69.174.190.44]) by mta9.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP id <20050531000220.CRGN8952.mta9.adelphia.net@69-174-190-44.frdrmd.adelphia.net>; Mon, 30 May 2005 20:02:20 -0400 Original-To: ntg-context@ntg.nl, VnPenguin User-Agent: KMail/1.7.2 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.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:20586 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20586 On Monday 30 May 2005 05:20 pm, VnPenguin wrote: > On 5/30/05, John R. Culleton wrote: > > For a particular section I wish to substitute a graphic for the > > section header, but have the TOC entry named as usual. Is there > > a way to say e.g., > > \section{foo} > > and have foo show up in the TOC but not as a section header? > > Have a look at "my" thread : > > http://www.ntg.nl/pipermail/ntg-context/2005/010976.html Which boils down to: ---------------------------------------------- \setuphead [chapter] [textcommand=\MyChapterTextCommand, numbercommand=\MyChapterNumberCommand] \def\MyChapterNumberCommand#1{} % hide chapter number \def\MyChapterTextCommand#1% {\externalfigure[(some graphic reference)]} --------------------- The graphic reference was chapter-\currentheadnumber That almost does it. Thanks! But I want to be able to specify the graphic at the point where the section/chapter/whatever is created. In plain pdftex there is a facility for retrieving the last graphic added (\pdflastximage). Does Context have an analogous command? Or I can just redefine \MyChapterTextCommand at each instance. That is more flexible than renaming graphics with chapter numbers. I do a newsletter where the chapter called "Rainbow Bridge" always has the same graphic, but that chapter doesn't always occur in the same spot in the sequence. John Culleton