# [NTG-context] Arranging framed text without gaps

Matthias Weber matweber at indiana.edu
Thu Feb 28 23:37:54 CET 2013

Dear all,

I am trying to create a table where the entries have determined width and height. They typically are
something like

\framed[width=5cm,height=4cm,align={center,middle}{Text}

and I understand that I will be responsible for making the dimensions so that everything fits nicely.

After playing around  without much success with the various tables, I came up with the following
which is not exactly ConTeXt-like:

\setupframed[
width=5cm,
height=4cm,
location={middle},
align={center,middle}
]
\setupbodyfont[24pt]

\starttext

\hbox{{\framed{Jim}}{\framed{Mary}}{\framed{John}}}
\hbox{{\framed{Patsy}}{\framed{Bob}}{\framed{Linda}}}
\hbox{{\framed{Mike}}{\framed{Babsy}}{\framed{Bill}}}
\hbox{{\framed{Liz}}{\framed{Dave}}{\framed{Jenny}}}
\hbox{{\framed{Dick}}{\framed{Sue}}{\framed{Chuck}}}
\hbox{{\framed{Maggie}}{\framed{Joe}}{\framed{Dolley}}}
\hbox{{\framed{Tom}}{\framed{Lisa}}{\framed{Chris}}}
\hbox{{\framed{Nancy}}{\framed{Paul}}{\framed{Betty}}}
\stoptext

I get small gaps between the horizontal rows which I don't like.
Also, in my (possibly not quite up to date) MkIV, the texts isn't centered.
In MkII it is.

My questions:

How do I
-- achieve the desired layout (exact dimensions, frames, no gaps) the right way,
-- without gaps between horizontal rows
-- with text centered in the frames also in MkIV?

Thanks a lot -

Matthias