From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20482 Path: news.gmane.org!not-for-mail From: VnPenguin Newsgroups: gmane.comp.tex.context Subject: Re: replace chapter text by an image, possible ? Date: Tue, 24 May 2005 20:06:36 +0200 Message-ID: References: <428D0B4E.9080402@wxs.nl> <4292F3F5.506@gmail.com> Reply-To: VnPenguin , 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: quoted-printable X-Trace: sea.gmane.org 1116957974 15865 80.91.229.2 (24 May 2005 18:06:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 May 2005 18:06:14 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 24 20:06:02 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 1Dadm2-0007rc-7w for gctc-ntg-context-518@m.gmane.org; Tue, 24 May 2005 20:05:05 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08524127DA; Tue, 24 May 2005 20:06:44 +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 29932-04; Tue, 24 May 2005 20:06:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 053C3127B8; Tue, 24 May 2005 20:06:41 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FD05127B8 for ; Tue, 24 May 2005 20:06:39 +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 30049-04 for ; Tue, 24 May 2005 20:06:38 +0200 (CEST) Original-Received: from nproxy.gmail.com (unknown [64.233.182.194]) by ronja.ntg.nl (Postfix) with ESMTP id BF349127A9 for ; Tue, 24 May 2005 20:06:38 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id a4so25121nfc for ; Tue, 24 May 2005 11:06:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sjLWd514q8f4BbxIMzcrfqQtXXF1DYM79yvzHiBPM1mXpBYMlMgDRUCDxk3j+kM+Nrn49xiMlbmLM0kw6RDzY6mVzIaOOxwLqdWbro9EEid+shksqMIrIcRldt5vtcl1aph4MC7pFzL1TwEfkuRSxQmlE8mtq2GP38ZiNSReqEs= Original-Received: by 10.48.239.8 with SMTP id m8mr17070nfh; Tue, 24 May 2005 11:06:36 -0700 (PDT) Original-Received: by 10.48.239.1 with HTTP; Tue, 24 May 2005 11:06:36 -0700 (PDT) Original-To: Mojca Miklavec In-Reply-To: <4292F3F5.506@gmail.com> 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:20482 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20482 On 5/24/05, Mojca Miklavec wrote: >=20 > I don't know the mechanisms behind the scenes, but I suppose that you > override placing the chapter in TOC if you make your own > "command=3D\MyChapterCommand". >=20 > (Line 2034 in core-sec.tex is \c!command=3D\@@placehead. Is this one > perhaps responsible for the strange behavior?) >=20 > However this solves the problem: >=20 >=20 > \setuphead > [chapter] > [textcommand=3D\MyChapterTextCommand, > numbercommand=3D\MyChapterNumberCommand] >=20 > \def\MyChapterNumberCommand#1{} % hide chapter number >=20 > \def\MyChapterTextCommand#1% > {\externalfigure[chapter-\currentheadnumber][height=3D5cm]} Wow, it works :-) Thank you a lot, Regards --=20 http://vnoss.org - Vietnamese Open Source Software Community