I gave the mod 7 table as an example; what I in fact want to display is the Cayley table for the dihedral group D_4.
By the way - how do I upgrade to Mk IV? I just downloaded the installer for ConTeXt Minimals and let it do its thing. This is getting very complicated... -Alasdair On Wed, May 4, 2011 at 8:43 PM, Paul Menzel < paulepan...@users.sourceforge.net> wrote: > Am Mittwoch, den 04.05.2011, 09:05 +0200 schrieb Wolfgang Schuster: > > 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) > > Alasdair takes modula 7 if I understood correctly. So it can be > > if i*j < 7 then > context(i*j) > else > context((i*j) % 7) > end > > (Nice symmetry in the resulting table.) > > > end > > context.eTD() > > end > > context.eTR() > > end > > context.eTABLE() > > \stopluacode > > > > \stoptext > > Thank you Wolfang, I just wanted to reply and recommend using Lua. As > always you were too fast. ;-) > > > Thanks, > > Paul > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ >
___________________________________________________________________________________ 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 ___________________________________________________________________________________