Ah, Not a bigger pen, but a bigger background shows the difference. % output=pdf \setupcolors[state=start] \startuniqueMPgraphic{shadow} fill OverlayBox shifted (20pt,-20pt) withcolor .8white ; fill OverlayBox withcolor white ; draw OverlayBox withcolor red ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow][\uniqueMPgraphic{shadow}] \startuniqueMPgraphic{shadow2} fill OverlayBox shifted (20pt,-20pt) withcolor .8white ; fill OverlayBox withcolor white ; draw OverlayBox withcolor red ; % setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow2][\uniqueMPgraphic{shadow2}] \starttext \framed [align=middle,background=shadow,frame=off] {\input tufte\relax} \blank[5*big] \framed [align=middle,background=shadow2,frame=off] {\input tufte\relax} \stoptext On Dec 23, 2005, at 1:28 AM, Hans Hagen wrote:
David Arnold wrote:
Very cool. First time I ever could figure out what \relax does. When I deleted it from this source, I got:
! I can't find file `zapf}'. l.25 {\input zapf}
Please type another input file name:
Good learning experience for me. I've seen and ignored this type of error message before, looking elsewhere in the code. A very good heads up for me.
Now is there anyway I can visualize the importance of the line
setbounds currentpicture to OverlayBox ;
in this example? I deleted it and recompiled but didn't see much difference. What is the import of this line?
take a bigger pen ... since the background is bigger than the overlaybox it will get centered in the background which si not what you want, therefore the bounding
Hans _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context