On Friday 27 November 2009 14:54:53 Willi Egger wrote:
Hi Alan,
I run in this myself. A possible solution is:
\startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(textext("\color[red]" & decimal i &""), (i, -1) scaled 1cm); endfor ; \stopuniqueMPgraphic
\setupcolors[state=start]
\starttext \uniqueMPgraphic{test} \stoptext
KR Willi
Yes, Thanks. I thought of this as a work-around, but the first is clearly a bug. What actually works is: \setupcolors [state=start] \starttext \startuniqueMPgraphic{test} for i = 0 upto 10 : %draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ; draw thelabel(textext("\red"& decimal i &""), (i, 0) scaled 1cm) ; endfor ; \stopuniqueMPgraphic \uniqueMPgraphic{test} \stoptext Now it is up to the experts to fix the bug in mkiv. Alan