Re: Formatting: Alignment within a table?
- To: mathgroup at smc.vnet.net
- Subject: [mg79266] Re: [mg79236] Formatting: Alignment within a table?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 22 Jul 2007 04:28:08 -0400 (EDT)
- Reply-to: hanlonr at cox.net
twoEntries = {{14, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}},
{21, {10, 2, 30, 4, 50, 6, 70, 8, 90, 10}}};
PaddedForm[
Grid[
Join[{{"Wins", "Strategy"}}, twoEntries],
Dividers -> {{2 -> Center}, {2 -> Center}},
ItemStyle ->
Directive[FontFamily -> "Courier", FontSize -> 14]],
2]
Bob Hanlon
---- AngleWyrm <anglewyrm at yahoo.com> wrote:
> twoEntries={ {14, {1,2,3,4,5,6,7,8,9,10}},
> {21,{10,2,30,4,50,6,70,8,90,10}} };
> MatrixForm[twoEntries, TableHeadings->{None,{"Wins","Strategy"}}]
>
> The result produces a column of lists that are fairly ragged:
>
> Wins Strategy
> ---------------------------
> 14 {1,2,3,4,5,6,7,8,9,10}
> 21 {10,2,30,4,50,6,70,8,90,10}
>
> How can I pad the numbers in the strategy column?
>
>
>