Am 04.05.2011 um 12:10 schrieb Alasdair McAndrew:

>  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: 

To separate the content and style of a table Hans added a “setups” key to 
\bTABLE/\startTABLE in MkIV but as you use MkII this setting has no effect. You 
can apply the style to the table with the \setups command:

% engine=pdftex

\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

\starttext

\start\setups[table:multiplication]
\startTABLE
\NC $\times$ \NC 0 \NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC 6 \NC\NR
\NC        0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC\NR
\NC        1 \NC 0 \NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC 6 \NC\NR
\NC        2 \NC 0 \NC 2 \NC 4 \NC 6 \NC 1 \NC 3 \NC 5 \NC\NR
\NC        3 \NC 0 \NC 3 \NC 6 \NC 2 \NC 5 \NC 1 \NC 4 \NC\NR
\NC        4 \NC 0 \NC 4 \NC 1 \NC 5 \NC 2 \NC 6 \NC 3 \NC\NR
\NC        5 \NC 0 \NC 5 \NC 3 \NC 1 \NC 6 \NC 4 \NC 2 \NC\NR
\NC        6 \NC 0 \NC 6 \NC 5 \NC 4 \NC 3 \NC 2 \NC 1 \NC\NR
\stopTABLE
\stop

\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