TableSpacing

TableSpacing
is an option for TableForm and MatrixForm which specifies how many spaces should be left between each successive row or column.

DetailsDetails

  • TableSpacing->{s1, s2, ...} specifies that 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 TableForm, TableSpacing->Automatic yields spacings .

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Format a table with no space between rows or columns:

In[1]:=
Click for copyable input
Out[1]//TableForm=

Use one space between rows and four between columns:

In[2]:=
Click for copyable input
Out[2]//TableForm=
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »