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 : [email protected] / 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
___________________________________________________________________________________

Reply via email to