From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65082 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: External figures in section headings Date: Sun, 9 Jan 2011 21:39:46 +0100 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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294607799 15003 80.91.229.12 (9 Jan 2011 21:16:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2011 21:16:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 09 22:16:35 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 1Pc2ct-0000FX-1N for gctc-ntg-context-518@m.gmane.org; Sun, 09 Jan 2011 22:16:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCB14CAA83; Sun, 9 Jan 2011 22:16:34 +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 5zDwHuARA2r1; Sun, 9 Jan 2011 22:16:32 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4DB3CAA7A; Sun, 9 Jan 2011 22:16:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 836FDCAA7A for ; Sun, 9 Jan 2011 22:16:30 +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 2p+Pts9scAuo for ; Sun, 9 Jan 2011 22:16:28 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 5FB86CAA78 for ; Sun, 9 Jan 2011 22:16:28 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p09LGRfD007969 for ; Sun, 9 Jan 2011 22:16:27 +0100 Original-Received: by wwb29 with SMTP id 29so19532124wwb.2 for ; Sun, 09 Jan 2011 13:16:27 -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; bh=wyUBNsH3jvkggwWia3TySexFMEpr6SpgrJ6UxHIiLbw=; b=x1a3BzO1nvZX27Dme3RWSQX7JCGWuaK6G5QeF150/9NxEhzwxHUncA1eYsuJVYkARM kzTD2UlpreunNLMgLHlbB6O5vq5nRQHTSDjQZyjH7I5uoyz+YaFOoPUjHcGvXF3QKbIj c2tC2Qr9FbdLfK0wQi221msN+BcNqJYBARh0s= 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; b=RMdoZjNSickq2FLwNIcr5kxn24XLNAjfwzWX+8k9okw7Y9Qo0gunOrLtfdhKoD0Njv nA9tqmcVYy80zbp7Aqgc9h2c/NVlnMkj4MdQ2OTG2YkRtwMuW9M30BcDegmeKwsMVPwt UYkIdHXSF4r7YJl9MG3RGeD5+wy6UyZtqcQJM= Original-Received: by 10.227.144.7 with SMTP id x7mr1960250wbu.115.1294605586618; Sun, 09 Jan 2011 12:39:46 -0800 (PST) Original-Received: by 10.227.131.87 with HTTP; Sun, 9 Jan 2011 12:39:46 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=74.125.82.45; 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: 0bDRxgrpI - 664f1686f6f1 - 20110109 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:65082 Archived-At: On Sun, Jan 9, 2011 at 5:33 PM, Felix Ingram wrote: > 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=\paperwidth,height=\paperheight] > \definelayerpreset[lefttop][corner={left,top},location={right,bottom}] > \setlayer[chapterstart][preset=lefttop]{\externalfigure[hacker.jpg]} > \setuphead[chapter][before={\setupbackgrounds[page][background=chapterstart]}] > \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=\paperwidth,height=\paperheight] \definelayerpreset[lefttop][corner={left,top},location={right,bottom}] \setlayer[chapterstart][preset=lefttop]{\externalfigure[cow]} \setuphead[chapter][before={% \setlayer[chapterstart][preset=lefttop]{\externalfigure[cow]}% \setupbackgrounds[page][background={chapterstart}]}] \starttext \chapter{First chapter} \chapter{Second chapter} \stoptext (I'm sure that there are other solutions) -- luigi ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________