Am 09.03.2010 um 15:24 schrieb Wolfgang Schuster:

Am 09.03.10 15:17, schrieb Andreas Harder:
Hi all,

I can't find a solution for the following example:

\starttext

\startMPpage
  draw origin for i=0 step 10 until 100 : ..{down}(i,0) endfor ;
\stopMPpage

\startluacode
context.startMPpage()
  context("draw origin"..for i=0,100,10 do.."..{down}("..i..",0)"..end..";")
context.stopMPpage()
\stopluacode

\stoptext

Can someone help?
  
\startluacode
context.startMPpage()
 context("draw origin")
 for i=0,100,10 do
   context(string.format("..{down}(%d,0)",i))
 end
 context(";")
context.stopMPpage()
\stopluacode

Thank you Wolfgang!

Greetings
Andreas