From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20457 Path: news.gmane.org!not-for-mail From: VnPenguin Newsgroups: gmane.comp.tex.context Subject: Re: replace chapter text by an image, possible ? Date: Sat, 21 May 2005 01:06:39 +0200 Message-ID: References: <428D0B4E.9080402@wxs.nl> 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 1116630378 13805 80.91.229.2 (20 May 2005 23:06:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 23:06:18 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 21 01:06: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 1DZGYy-0002MQ-KC for gctc-ntg-context-518@m.gmane.org; Sat, 21 May 2005 01:05:52 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 39AB412843; Sat, 21 May 2005 01:06:49 +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 06897-01; Sat, 21 May 2005 01:06:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A2A1312832; Sat, 21 May 2005 01:06:42 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0EB3712832 for ; Sat, 21 May 2005 01:06:42 +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 06719-06-3 for ; Sat, 21 May 2005 01:06:40 +0200 (CEST) Original-Received: from nproxy.gmail.com (unknown [64.233.182.198]) by ronja.ntg.nl (Postfix) with ESMTP id 1C00F1278B for ; Sat, 21 May 2005 01:06:40 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id a4so6088nfc for ; Fri, 20 May 2005 16:06:39 -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=Q9RbMOc+6xwRBgiWzJtiXzRpfWW8cLKCm8PngDuPScTlTWuRIbJCmxbjX76sEyy0a7IYicdjYwTQcNWW6DxZ9fDxoBnXS0QJLa4tU258d9JVcgBJq1AnnqM03yDa9ouhJnp/vel1gY0WS0w2oMh00aZa2urgdKoRobXDPZChDI4= Original-Received: by 10.48.239.5 with SMTP id m5mr6156nfh; Fri, 20 May 2005 16:06:39 -0700 (PDT) Original-Received: by 10.48.239.1 with HTTP; Fri, 20 May 2005 16:06:39 -0700 (PDT) Original-To: Hans Hagen In-Reply-To: <428D0B4E.9080402@wxs.nl> 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:20457 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20457 On 5/19/05, Hans Hagen wrote: > VnPenguin wrote: > > Hi all, > > I would like to know if it's possible to replace the chapter text by an= image ? > > How to do that ? And in this case, how to insert a normal text into > > TOC manually in order to have a normal TOC. > > > > Thank you in advance, >=20 > thanks for asking a simple question -) hehe, for you yes, for me, maybe not simple :) =20 > \useexternalfigure[chapter-1][cow.pdf] > \useexternalfigure[chapter-2][hacker.jpg] >=20 > \setuphead > [chapter] > [command=3D\MyChapterCommand] >=20 > \def\MyChapterCommand#1#2% > {\externalfigure[chapter-\currentheadnumber][height=3D5cm]} >=20 > \starttext >=20 > \chapter{One} > \chapter{Two} >=20 > \stoptext >=20 > this solution looks wiki-able to me, so ... >=20 Your code works fine. However when I try to add TOC: \chapter{One} \section{One-1} \chapter{Two} \section{Two-1} \setuplist [chapter][before=3D\blank, after=3D\blank, style=3D{\switchtobodyfont[20pt]\bf}] \setuplist [section][margin=3D2em, width=3D3em] \setuplist [chapter,section][interaction=3Dall] \setupcombinedlist [content] [alternative=3Dc, aligntitle=3Dno, width=3D2em] \placelist[chapter,section] In the TOC result, there are ONLY item for section. You see, this question is not simple at all :) Thank you,