Question about alignment in Grid and TableForm
- To: mathgroup at smc.vnet.net
- Subject: [mg88428] Question about alignment in Grid and TableForm
- From: Alexey Popkov <popkov at gmail.com>
- Date: Mon, 5 May 2008 06:12:59 -0400 (EDT)
Hello,
I wish text objects in Grid would be aligned at center of column and
numbers in ScientificForm aligned at ".". I have tried to use the
following constructions as elements of the Grid but the text objects
are not centered at the centers of columns:
Item["some text", Alignment -> Center]
and
Item[1000*Pi // ScientificForm, Alignment -> "."].
The code I have tried (it is just example):
TableForm[
Insert[Table[
Item[N[Pi a^10] // ScientificForm, Alignment -> "."], {a, 1,
5}, {b, 1, 3}], {Item["First Column text", Alignment -> Center],
Item["Second Column text", Alignment -> Center],
Item["Third Column text", Alignment -> Center]}, 3]]
Grid[Insert[
Table[Item[N[Pi a^10] // ScientificForm, Alignment -> "."], {a, 1,
5}, {b, 1, 3}], {Item["First Column text", Alignment -> Center],
Item["Second Column text", Alignment -> Center],
Item["Third Column text", Alignment -> Center]}, 3]]
How to place text objects at the centers of the columns? Is this a bug
in "Alignment" option?