On 03/01/2013 04:30 AM, Marco Patzer wrote:
On 2013--02--28 Matthias Weber wrote:

-- without gaps between horizontal rows
-- with text centered in the frames also in MkIV?
See Adityas answer for how to fix your current code.

-- achieve the desired layout (exact dimensions, frames, no gaps) the right way,
There is no "right" way. Here's how I would approach that:

\usemodule
   [database]

\definefont
   [MyBigFont]
   [Serif at 24pt]

\defineseparatedlist
   [MyTable]
   [before=\bTABLE, after=\eTABLE,
    first=\bTR, last=\eTR,
    left=\bTD, right=\eTD,
    setups=my:table]

\startsetups [my:table]
   \setupTABLE [split=yes, width=5cm, height=4cm, style=MyBigFont]
   \setupTABLE [each] [align={middle,lohi}]
\stopsetups

\starttext

\startMyTable
   Jim    , Mary  , John
   Patsy  , Bob   , Linda
   Mike   , Babsy , Bill
   Liz    , Dave  , Jenny
   Dick   , Sue   , Chuck
   Maggie , Joe   , Dolley
   Tom    , Lisa  , Chris
   Nancy  , Paul  , Betty
\stopMyTable

\stoptext


Marco

This looks really clean. I wish I had known about this neat trick while working on my thesis. I guess this is the difference between a novice user and an expert user of ConTeXt.

Thank you Marco,
Devendra





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

___________________________________________________________________________________
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