ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metapost graphic in setupbackground
@ 2019-02-08 11:36 Jan U. Hasecke
  2019-02-08 11:56 ` Marco Patzer
  2019-02-08 11:57 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Jan U. Hasecke @ 2019-02-08 11:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-08 12:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-08 11:36 Metapost graphic in setupbackground Jan U. Hasecke
2019-02-08 11:56 ` Marco Patzer
2019-02-08 11:57 ` Wolfgang Schuster
2019-02-08 12:34   ` Jan U. Hasecke

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).