* Recomputing useMPgraphic in footers
@ 2005-05-09 14:02 David Antos
2005-05-09 15:11 ` Taco Hoekwater
2005-05-09 20:32 ` Hans Hagen
0 siblings, 2 replies; 3+ messages in thread
From: David Antos @ 2005-05-09 14:02 UTC (permalink / raw)
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?
Thanks,
D.A.
--
Trust no man, not even your brother
With hair one colour and beard another
-- Ty Semaka (The Plaid Tongued Devils): never drown a cat
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Recomputing useMPgraphic in footers
2005-05-09 14:02 Recomputing useMPgraphic in footers David Antos
@ 2005-05-09 15:11 ` Taco Hoekwater
2005-05-09 20:32 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2005-05-09 15:11 UTC (permalink / raw)
David Antos wrote:
> Hello,
>
> I have
>
> \defineoverlay[Wave][\useMPgraphic{Wave}]
>
> \startuseMPgraphic{Wave}
> ...
> \stopuseMPgraphic
>
> \setupbackgrounds[footer][text][background={Wave}]
You need an additional
\setupbackgrounds[state=repeat]
here.
Greetings, Taco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Recomputing useMPgraphic in footers
2005-05-09 14:02 Recomputing useMPgraphic in footers David Antos
2005-05-09 15:11 ` Taco Hoekwater
@ 2005-05-09 20:32 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2005-05-09 20:32 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-09 20:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 14:02 Recomputing useMPgraphic in footers David Antos
2005-05-09 15:11 ` Taco Hoekwater
2005-05-09 20:32 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).