Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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}}]

gridcolumn

share|improve this question
2  
You don't have to edit just to say you take that back... you can actually take that back by editing it out ;) –  rm -rf Jul 23 '12 at 18:27

1 Answer 1

up vote 7 down vote accepted
Grid[tab, Frame -> {None, None, {{1, 1} -> True, {1, 2} -> True}}, ItemSize -> All]

Mathematica graphics

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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