({{, (RefLink[TableAlignments, paclet:ref/TableAlignments])
is an option for (RefLink[TableForm, paclet:ref/TableForm]) and (RefLink[MatrixForm, paclet:ref/MatrixForm]) which specifies how entries in each dimension should be aligned. }})

OpenersNotesSection(Spacer1)Details

(RefLink[TableAlignments, paclet:ref/TableAlignments])->{(Subscript[a, 1]),(Subscript[a, 2]),…} specifies alignments for successive dimensions.

For dimensions that are given as columns, possible alignments are (RefLink[Left, paclet:ref/Left]), (RefLink[Center, paclet:ref/Center]), and (RefLink[Right, paclet:ref/Right]). For dimensions that are given as rows, possible alignments are (RefLink[Bottom, paclet:ref/Bottom]), (RefLink[Center, paclet:ref/Center]), and (RefLink[Top, paclet:ref/Top]).

The default setting (RefLink[TableAlignments, paclet:ref/TableAlignments])->(RefLink[Automatic, paclet:ref/Automatic]) uses (RefLink[Left, paclet:ref/Left]) for column alignment, and (RefLink[Bottom, paclet:ref/Bottom]) for row alignment.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

TableForm[Partition[Range[12]!,3],TableAlignments->Center]

OpenersExampleSection1(Spacer1)Scope  (2)

Specify vertical and horizontal alignments for (RefLink[TableForm, paclet:ref/TableForm]):

TableForm[Table[Graphics[Rectangle[],ImageSize->(i+j)],{i,{10,25,40}},{j,{10,25,40}}],TableAlignments->{Right,Center}]

Define multiple dimensional alignments for (RefLink[MatrixForm, paclet:ref/MatrixForm]):

m=Partition[Transpose@Partition[Range[18]!,6],3];

MatrixForm[m,TableAlignments->{Right,Top,Center}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TableDirections, paclet:ref/TableDirections])  ▪  (RefLink[RowAlignments, paclet:ref/RowAlignments])  ▪  (RefLink[ColumnAlignments, paclet:ref/ColumnAlignments])  ▪  (RefLink[TableForm, paclet:ref/TableForm])  ▪  (RefLink[TableHeadings, paclet:ref/TableHeadings])  ▪  (RefLink[TableSpacing, paclet:ref/TableSpacing])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Tables and Matrices, paclet:tutorial/TablesAndMatrices])}})}})