It looks like it should work, but when I try it I get a very squashed table, with lines between all rows and columns... FWIW, I'm using MKII:
"ConTeXt ver: 2011.02.25 22:03 MKII fmt: 2011.3.14 int: english/english" -Alasdair On Wed, May 4, 2011 at 5:05 PM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 04.05.2011 um 06:45 schrieb Aditya Mahajan: > > > \startsetups table:frame > > \setupTABLE[each][each][frame=off, align=middle] > > \setupTABLE[row][first][bottomframe=on] > > \setupTABLE[column][first][rightframe=on] > > \stopsetups > > > > \startTABLE[setups=table:frame] > > \NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR > > .... > > \stopTABLE > > and for the lazy people: > > \starttext > > \startsetups table:multiplication > \setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em] > \setupTABLE[row][first][bottomframe=on] > \setupTABLE[column][first][rightframe=on] > \stopsetups > > \startluacode > context.bTABLE{setups="table:multiplication"} > for i=0,6 do > context.bTR() > for j=0,6 do > context.bTD() > if i==0 and j==0 then > context("×") > elseif i==0 or j==0 then > context(i+j) > else > context(i*j) > end > context.eTD() > end > context.eTR() > end > context.eTABLE() > \stopluacode > > \stoptext > > 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 > > ___________________________________________________________________________________ > -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew
___________________________________________________________________________________ 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 ___________________________________________________________________________________