From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65084 Path: news.gmane.org!not-for-mail From: Felix Ingram Newsgroups: gmane.comp.tex.context Subject: Re: External figures in section headings Date: Sun, 9 Jan 2011 21:36:20 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294608998 20102 80.91.229.12 (9 Jan 2011 21:36:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2011 21:36:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 09 22:36:34 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 1Pc2wD-0001jB-Lr for gctc-ntg-context-518@m.gmane.org; Sun, 09 Jan 2011 22:36:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9F2BCAA89; Sun, 9 Jan 2011 22:36:32 +0100 (CET) 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 1QM1TKnfTcn3; Sun, 9 Jan 2011 22:36:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E758CAA76; Sun, 9 Jan 2011 22:36:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4783CAA76 for ; Sun, 9 Jan 2011 22:36:27 +0100 (CET) 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 uACWxkSACAoK for ; Sun, 9 Jan 2011 22:36:25 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id A141DCA9BB for ; Sun, 9 Jan 2011 22:36:25 +0100 (CET) Original-Received: from mail-pv0-f169.google.com (mail-pv0-f169.google.com [74.125.83.169]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p09LaLMV001721 for ; Sun, 9 Jan 2011 22:36:24 +0100 Original-Received: by pvc30 with SMTP id 30so4211487pvc.14 for ; Sun, 09 Jan 2011 13:36:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Bcdw2xxWILUHBu9GlUpK93szi8QkUef+3FsI/Kz8Slc=; b=b5RwSFjSyyHJCIJKSldcsvqztAj0u0IILB35iyU1hmJsr3vimwyFg5JWYe9HN8jq6O owo+a9fdmOHwvrqyqLNs07DfoOzXBfYx5Nn/VHgwVg7POYI8kBDS3zhqSeNpoHJe2ARq EVPL86VaYse1OSs6/wQ2guo1G5aKolI05nD6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pkY0ueokygwQxID/7REzbZMprkCdq3YZqcFbpw36yIoThe6B+y9Go+yLtmJHHmgg2l l618AT/tsgugTTmc0lH+3Rg26v2bXN81+snIK6tsqZurU49woeLZ8iguERZRpPf1LRa8 23dbRQe1FuPiBOfw2urSGjqcCamzkQ8+OqPEA= Original-Received: by 10.142.207.8 with SMTP id e8mr2082761wfg.164.1294608980996; Sun, 09 Jan 2011 13:36:20 -0800 (PST) Original-Received: by 10.142.226.17 with HTTP; Sun, 9 Jan 2011 13:36:20 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=74.125.83.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07DRxAmck - e12889bc1cf3 - 20110109 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:65084 Archived-At: On 9 January 2011 20:39, luigi scarso wrote: > On Sun, Jan 9, 2011 at 5:33 PM, Felix Ingram w= rote: >> Hello all, >> >> I need to have an image as part of my section headings. I've read >> through an example in the "It's in the details" manual and came up >> with the following example: >> >> \definelayer[chapterstart][width=3D\paperwidth,height=3D\paperheight] >> \definelayerpreset[lefttop][corner=3D{left,top},location=3D{right,bottom= }] >> \setlayer[chapterstart][preset=3Dlefttop]{\externalfigure[hacker.jpg]} >> \setuphead[chapter][before=3D{\setupbackgrounds[page][background=3Dchapt= erstart]}] >> \starttext >> \chapter{First chapter} >> \chapter{Second chapter} >> \stoptext >> >> This works very well for the first chapter: the picture is inserted >> behind the text as I want but nothing is inserted behind the second >> chapter heading. I've been able to add extra details to the setuphead; >> these are repeated but the picture is not. >> >> Can anyone see what I'm doing wrong? I get the same behaviour whether >> I use version II or IV. > > \definelayer[chapterstart][width=3D\paperwidth,height=3D\paperheight] > \definelayerpreset[lefttop][corner=3D{left,top},location=3D{right,bottom}] > \setlayer[chapterstart][preset=3Dlefttop]{\externalfigure[cow]} > \setuphead[chapter][before=3D{% > > \setlayer[chapterstart][preset=3Dlefttop]{\externalfigure[cow]}% > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \setupbackgrounds[page][background=3D= {chapterstart}]}] > \starttext > \chapter{First chapter} > \chapter{Second chapter} > \stoptext > > > (I'm sure that there are other solutions) Works perfectly - many thanks. Felix ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________