Suppose that I have this table tab, which I display using Grid. Is it possible to force the columns to be equally spaced? All columns should be the same width and no data should be discarded/hidden from view.

tab = {{"aaaa", "b"}, {"1", SpanFromLeft}, {"2", SpanFromLeft}, {"3", SpanFromLeft}};
Grid[tab, Frame -> {None, None, {{1, 1} -> True, {1, 2} -> True}}]


  • 2
    $\begingroup$ You don't have to edit just to say you take that back... you can actually take that back by editing it out ;) $\endgroup$ – rm -rf Jul 23 '12 at 18:27
Grid[tab, Frame -> {None, None, {{1, 1} -> True, {1, 2} -> True}}, ItemSize -> All]

Mathematica graphics

|improve this answer|||||
  • $\begingroup$ So it seems like just adding ItemSize -> All does the trick. Thanks! $\endgroup$ – Andrew Jul 23 '12 at 19:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.