![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 17-10-2012 03:13, Jeong Dal wrote:
Dear all,
I used code which generates the table as following:
\startluacode local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL context.starttabulate { "|c|c|c|c|c|c|c|c|c|c|" } HL() for i=1, 6, 1 do for j=1,10 ,1 do k= i % 3 if k==1 then VL() context(10*(i - k)/3+j) else VL() end end VL() NR() if k==0 then HL() end end context.stoptabulate() \stopluacode
But it has a fixed column definition as "|c|c|c|c|c|c|c|c|c|c|" and the number of columns.
context.starttabulate { string.rep("|c",10+1) } ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------