* nested mp
@ 2013-10-07 10:19 Hans Hagen
0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2013-10-07 10:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
This should work ok now in the current beta.
\starttext
\startuniqueMPgraphic{mytest}
fill OverlayBox withcolor green ;
draw textext("nested") xsized 8cm shifted center OverlayBox
withcolor blue ;
draw fullcircle scaled bbwidth(OverlayBox) withcolor red ;
\stopuniqueMPgraphic
\defineoverlay[mytest][\uniqueMPgraphic{mytest}]
\startMPpage[offset=1pt]
fill fullcircle scaled 10cm withcolor red ;
draw textext("\framed[background=mytest]{bla}") ;
draw textext("test 1.1") xsized 8cm rotated 45 withcolor white/2 ;
draw textext("test 1.2") xsized 4cm rotated -45 withcolor white/4 ;
\stopMPpage
\startMPpage[offset=1pt]
fill fullcircle scaled 10cm withcolor red ;
draw textext("\framed[background=mytest]{bla bla}") ;
draw textext("test 2.1") xsized 8cm rotated 45 withcolor
white/1 ;
draw textext("test 2.2") xsized 4cm rotated -45 withcolor
white/2 ;
draw textext("test 2.1") xsized 6cm rotated -30 withcolor
white/3 ;
draw textext("test 2.2") xsized 4cm rotated 30 withcolor
white/4 ;
\stopMPpage
\stoptext
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-07 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-07 10:19 nested mp 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).