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

* Re: Metapost graphic in setupbackground
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Marco Patzer @ 2019-02-08 11:56 UTC (permalink / raw)
  To: ntg-context

On Fri, 8 Feb 2019 12:36:16 +0100
"Jan U. Hasecke" <juh+ntg-context@mailbox.org> wrote:

> \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
___________________________________________________________________________________
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

* Re: Metapost graphic in setupbackground
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2019-02-08 11:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jan U. Hasecke



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

___________________________________________________________________________________
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

* Re: Metapost graphic in setupbackground
  2019-02-08 11:57 ` Wolfgang Schuster
@ 2019-02-08 12:34   ` Jan U. Hasecke
  0 siblings, 0 replies; 4+ messages in thread
From: Jan U. Hasecke @ 2019-02-08 12:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
> 

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