Since some weeks I have strange problems with MetaPost in MKIV (beta). The
attached example should (and did in the past) output a central box ("Fakt")
surrounded by five boxes named "Dimension". However some of them (in that
particular example one) is drawn wrong: the box is on the right spot, but
the label seems to be at 0,0. It seems to happen whenever the boxes are
drawn from within a loop - at least all of my problems with boxes show
similar symptoms and only occur within loops.

Any ideas what goes wrong here?
\startMPinclusions
        input boxes;
\stopMPinclusions

\startMPpage
        u := 1cm;
        
        circleit.fact(\sometxt{\bf Fakt});
        fact.c = (0u, 0u);
        fact.dx = fact.dy;

        drawboxed(fact);

        for i = 45 step 72 until 360:
                circleit.dim[i](\sometxt{Dimension});
                dim[i].c = 3u*right rotated i;
                dim[i].dx = dim[i].dy;
                drawoptions(dashed evenly);
                drawboxed(dim[i]);
                drawoptions();
                drawarrow fact.c -- dim[i].c cutbefore bpath.fact cutafter 
bpath.dim[i];
        endfor;
\stopMPpage
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to