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
Am 04.05.2011 um 06:45 schrieb Aditya Mahajan:
and for the lazy people:
> \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
\starttext
\startsetups table:multiplication
\setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
\setupTABLE[row][first][bottomframe=on]\startluacode
\setupTABLE[column][first][rightframe=on]
\stopsetups
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
___________________________________________________________________________________