> Am 22.11.2014 um 21:32 schrieb John Kitzmiller <k...@inradius.net>: > > Given rectangles with text: > > \starttext > Before:\\ > \startMPcode > draw unitsquare xscaled 2cm yscaled 1cm; > \stopMPcode > \\ > After:\\ > \startMPcode > for i=0 upto 1: > draw unitsquare scaled 1cm xshifted i*cm; > endfor; > \stopMPcode > \stoptext > > How can a line be drawn connecting the right edges of the rectangles? I have > played with: > > \startuniqueMPgraphic{line} > path a; > a:=(0,0)--(0,3cm); > draw a withpen pencircle scaled 3pt withcolor green; > \stopuniqueMPgraphic > > \defineoverlay[line][{\uniqueMPgraphic{line}}] > > and using it in \framed, but placing the line correctly is elusive.
Look at chapter 5 in the metafun manual. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________