({{, (RefLink[TableSpacing, paclet:ref/TableSpacing])
is an option for (RefLink[TableForm, paclet:ref/TableForm]) and (RefLink[MatrixForm, paclet:ref/MatrixForm]) that specifies how many spaces should be left between each successive row or column. }})

OpenersNotesSection(Spacer1)Details

(RefLink[TableSpacing, paclet:ref/TableSpacing])->{(Subscript[s, 1]),(Subscript[s, 2]),…} specifies that (Subscript[s, i]) spaces should be left in dimension i.

For columns, the spaces are rendered as space characters. For rows, the spaces are rendered as blank lines.

For (RefLink[TableForm, paclet:ref/TableForm]), (RefLink[TableSpacing, paclet:ref/TableSpacing])->(RefLink[Automatic, paclet:ref/Automatic]) yields spacings {1,3,0.5,1,0.5,1,…}.

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Format a table with no space between rows or columns:

TableForm[Array[(Subscript[a, ##])&,{3,2}],TableSpacing->{0,0}]

Use one space between rows and four between columns:

TableForm[Array[(Subscript[a, ##])&,{3,2}],TableSpacing->{1,4}]

OpenersExampleSection1(Spacer1)Scope  (2)

Use with (RefLink[MatrixForm, paclet:ref/MatrixForm]):

MatrixForm[Array[(Subscript[a, ##])&,{3,2}],TableSpacing->{0,0}]

MatrixForm[Array[(Subscript[a, ##])&,{3,2}],TableSpacing->{1,4}]

Specify spacings for any number of dimensions:

TableForm[Array[(Subscript[a, ##])&,{2,2,2,2}],TableSpacing->{6,4,2,0}]

OpenersExampleSection2(Spacer1)Applications  (1)

Display a bit matrix with no spacing:

MatrixForm[RandomInteger[{0,1},{20,20}],TableSpacing->{0,0}]

OpenersExampleSection3(Spacer1)Neat Examples  (1)

A bit matrix texture:

Style[TableForm[RandomInteger[{0,1},{100,100}],TableSpacing->{0,0}],4]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[RowSpacings, paclet:ref/RowSpacings])  ▪  (RefLink[ColumnSpacings, paclet:ref/ColumnSpacings])  ▪  (RefLink[TableDirections, paclet:ref/TableDirections])}})}})

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