ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Using \defineoverlay for a framed text
@ 2020-06-16 12:17 Willi Egger
  2020-06-16 12:37 ` Marco Patzer
  0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2020-06-16 12:17 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Hello listmembers,


I try to use a Metapost drawing as a background to a framed text. — I can not make it working though…

\startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight}
	fill OverlayBox enlarged 5mm withcolor blue;
\stopuniqueMPgraphic

\defineoverlay[Marks]{\useMPgraphic{Markings}}

\setupframed[background=Marks]

\setupframedtexts
	[frame=on,
 background=Marks]	
	
\starttext
	\framedtext{Hello World!}
	\blank
	\framed{Hello World!}
\stoptext

What is wrong with this code?

Kind regards

Willi
___________________________________________________________________________________
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: Using \defineoverlay for a framed text
  2020-06-16 12:17 Using \defineoverlay for a framed text Willi Egger
@ 2020-06-16 12:37 ` Marco Patzer
  2020-06-16 12:44   ` Marco Patzer
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2020-06-16 12:37 UTC (permalink / raw)
  To: ntg-context

On Tue, 16 Jun 2020 14:17:09 +0200
Willi Egger <context@boede.nl> wrote:

> I try to use a Metapost drawing as a background to a framed text. — I
> can not make it working though…
> 
> \startuniqueMPgraphic{Markings}
> %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm
> withcolor blue; \stopuniqueMPgraphic
> 
> \defineoverlay[Marks]{\useMPgraphic{Markings}}

\defineoverlay[Marks][{\useMPgraphic{Markings}}]

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: Using \defineoverlay for a framed text
  2020-06-16 12:37 ` Marco Patzer
@ 2020-06-16 12:44   ` Marco Patzer
  2020-06-16 14:26     ` Willi Egger
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2020-06-16 12:44 UTC (permalink / raw)
  To: ntg-context

On Tue, 16 Jun 2020 14:37:17 +0200
Marco Patzer <lists@homerow.info> wrote:

> On Tue, 16 Jun 2020 14:17:09 +0200
> Willi Egger <context@boede.nl> wrote:
> 
> > I try to use a Metapost drawing as a background to a framed text. —
> > I can not make it working though…
> > 
> > \startuniqueMPgraphic{Markings}
> > %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged
> > 5mm withcolor blue; \stopuniqueMPgraphic
> > 
> > \defineoverlay[Marks]{\useMPgraphic{Markings}}  
> 
> \defineoverlay[Marks][{\useMPgraphic{Markings}}]

Better:

\defineoverlay[Marks][\useMPgraphic{Markings}]

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: Using \defineoverlay for a framed text
  2020-06-16 12:44   ` Marco Patzer
@ 2020-06-16 14:26     ` Willi Egger
  0 siblings, 0 replies; 4+ messages in thread
From: Willi Egger @ 2020-06-16 14:26 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Hi Marco,

thank you! :-)

Willi

> On 16 Jun 2020, at 14:44, Marco Patzer <lists@homerow.info> wrote:
> 
> On Tue, 16 Jun 2020 14:37:17 +0200
> Marco Patzer <lists@homerow.info> wrote:
> 
>> On Tue, 16 Jun 2020 14:17:09 +0200
>> Willi Egger <context@boede.nl> wrote:
>> 
>>> I try to use a Metapost drawing as a background to a framed text. —
>>> I can not make it working though…
>>> 
>>> \startuniqueMPgraphic{Markings}
>>> %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged
>>> 5mm withcolor blue; \stopuniqueMPgraphic
>>> 
>>> \defineoverlay[Marks]{\useMPgraphic{Markings}}  
>> 
>> \defineoverlay[Marks][{\useMPgraphic{Markings}}]
> 
> Better:
> 
> \defineoverlay[Marks][\useMPgraphic{Markings}]
> 
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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:[~2020-06-16 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 12:17 Using \defineoverlay for a framed text Willi Egger
2020-06-16 12:37 ` Marco Patzer
2020-06-16 12:44   ` Marco Patzer
2020-06-16 14:26     ` Willi Egger

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