Metapost graphic in setupbackground
Hi all, I make my first steps with Metapost. I would like to set the background of all pages to a Metapost graphic. But only the first page has the defined background. I also tried with \startuseMPgraphic with no success --- mwe --- \startreusableMPgraphic{kreis} draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm; \stopreusableMPgraphic \definelayer[kreisbackground][width=70mm,height=70mm] \setlayer[kreisbackground] [x=-3mm,y=-3mm] {\reuseMPgraphic{kreis}} \setupbackgrounds[paper][background=kreisbackground, state=start] \starttext \input lorem \page \input lorem \stoptext TIA juh
On Fri, 8 Feb 2019 12:36:16 +0100
"Jan U. Hasecke"
\definelayer[kreisbackground][width=70mm,height=70mm]
\definelayer[kreisbackground][width=70mm,height=70mm, state=repeat] start : layer appears only on the current page stop : layer doesn't show up repeat : layer prints on all pages next : layer appears on the following page continue : layer appears on all pages except the first
\setupbackgrounds[paper][background=kreisbackground, state=start]
\setupbackgrounds[paper][background=kreisbackground] Marco
Jan U. Hasecke schrieb am 08.02.19 um 12:36:
Hi all,
I make my first steps with Metapost.
I would like to set the background of all pages to a Metapost graphic.
But only the first page has the defined background.
I also tried with
\startuseMPgraphic
with no success
--- mwe ---
\startreusableMPgraphic{kreis} draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm; \stopreusableMPgraphic
\definelayer[kreisbackground][width=70mm,height=70mm]
\definelayer[kreisbackground][state=repeat] Wolfgang
Thanks a lot Wolfgang and Marco. :-) juh Am 08.02.19 um 12:57 schrieb Wolfgang Schuster:
Jan U. Hasecke schrieb am 08.02.19 um 12:36:
Hi all,
I make my first steps with Metapost.
I would like to set the background of all pages to a Metapost graphic.
But only the first page has the defined background.
I also tried with
\startuseMPgraphic
with no success
--- mwe ---
\startreusableMPgraphic{kreis} draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm; \stopreusableMPgraphic
\definelayer[kreisbackground][width=70mm,height=70mm]
\definelayer[kreisbackground][state=repeat]
Wolfgang
participants (3)
-
Jan U. Hasecke
-
Marco Patzer
-
Wolfgang Schuster