GridBox coming back unevaluated
- To: mathgroup at smc.vnet.net
- Subject: [mg65550] GridBox coming back unevaluated
- From: "J Siehler" <jsiehler at gmail.com>
- Date: Fri, 7 Apr 2006 06:14:26 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello, group,
I'm perplexed by the results of the following
GridBox[Table[3i + j, {i, 0, 2}, {j, 1, 3}], RowLines -> True,
ColumnLines -> True] //DisplayForm
GridBox[Partition[Range[9], 3], RowLines -> True, ColumnLines ->True]
// DisplayForm
The first returns a nicely formatted box; the second does not. Tracing
the execution of the two shows that they both arrive, of course, at
GridBox[{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, RowLines -> True,
ColumnLines -> True]
but only the first proceeds from that point to returning
two-dimensional output.
Here is a minor variation:
m = {{1, 2}, {3, 4}}
ma = Append[m, {5, 6}]
mb = Append[m, Range[5, 6]]
ma === mb
GridBox[ma] // DisplayForm
GridBox[mb] // DisplayForm
The penultimate line returns a 2D box; the last line does not. Anyone
care to enlighten me?