From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20290 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Recomputing useMPgraphic in footers Date: Mon, 09 May 2005 22:32:30 +0200 Message-ID: <427FC8DE.6000302@wxs.nl> References: <20050509140244.GF4458@erik.fi.muni.cz> 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115670352 2854 80.91.229.2 (9 May 2005 20:25:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 May 2005 20:25:52 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon May 09 22:25:50 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 1DVEoW-0000YS-5n for gctc-ntg-context-518@m.gmane.org; Mon, 09 May 2005 22:25:16 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3C4E12827; Mon, 9 May 2005 22:32:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20164-02-3; Mon, 9 May 2005 22:32:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B3A71280C; Mon, 9 May 2005 22:32:34 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0AAC212810 for ; Mon, 9 May 2005 22:32:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20164-02-2 for ; Mon, 9 May 2005 22:32:31 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 34FE312805 for ; Mon, 9 May 2005 22:32:31 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j49KWP1a007402 for ; Mon, 9 May 2005 22:32:25 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 67E791A1E7; Mon, 9 May 2005 22:07:01 +0200 (CEST) Original-Received: from [10.100.1.53] (unknown [10.100.1.53]) by server-1.pragma-net.nl (Postfix) with ESMTP id BBD1617B93 for ; Mon, 9 May 2005 20:06:59 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20050509140244.GF4458@erik.fi.muni.cz> X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by 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-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20290 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20290 David Antos wrote: > Hello, > > I have > > \defineoverlay[Wave][\useMPgraphic{Wave}] > > \startuseMPgraphic{Wave} > ... > \stopuseMPgraphic > > \setupbackgrounds[footer][text][background={Wave}] > > The problem is that the graphics is not re-computed on every page, > although I pretty convinced it should. > > On the opposite, when I set > \setupbackgrounds[text][text][background={Wave}] > it works perfectly well. (The difference is in [footer] vs. [text].) > > An ugly workaround is to call \setupbackgrounds on every page, but it's > not nice at all. What went wrong? as already mentioned (by taco): \setupbackgrounds[state=repeat] only page and text area backgrounds are recalculated each page (otherwise the speed penalty is too big] an option is to do something: \setupbackgrounds[page][background=PageBackground] \defineoverlay[PageBackground][\reuseMPgraphic{PageBackground}] \startreusableMPgraphic{PageBackground} StartPage ; fill Field[Text][Footer] withcolor red ; StopPage ; \stopreusableMPgraphic (see metafun manual for details on the page stuff) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------