1 Answer
1

If you're not set on the array approach and would be okay with explicitly specifying the size of the squares, you could use TikZ for this. Based on the answer to the question TikZ matrix as a replacement for tabular, you could define a style that adjusts a TikZ matrix to have all the cells join each other and have identical heights and widths:

! Package pgfkeys Error: I do not know the key '/tikz/align' and I am going to ignore it. Perhaps you misspelled it. -- When I remove align, then numbers are aligned to left-bottom corner.
–
scdmbMay 21 '11 at 15:31

@scdmb: You're using an old version of TikZ (v 2.0, probably?), the current one is v 2.1
–
JakeMay 21 '11 at 15:32

@scdmb: Try changing text width=#1 to minimum width=#1, that should work with the old version as well.
–
JakeMay 21 '11 at 15:36