LineSpacing

LineSpacing

is an option for Style and Cell that specifies the spacing between successive lines of text.

Details

  • LineSpacing->{c,0} leaves space so that the total height of each line is c times the height of its contents.
  • LineSpacing->{0,n} makes the total height of each line exactly n printer's points.
  • LineSpacing->{c,n} makes the total height c times the height of the contents plus n printer's points.
  • LineSpacing->{c,n,max} limits the amount of extra space to be max times the height of a single line of ordinary text in the current font.
  • A typical default setting for text is LineSpacing->{1,1}, which leaves space for the contents of the line, plus 1 printer's point (approximately of an inch) of extra space.
  • LineSpacing->{2,0} makes text "double spaced".
  • LineSpacing->{1,-n} tightens text by n printer's points.
  • LineSpacing applies both to ordinary text and Wolfram Language expressions, including graphics.
  • A typical default setting for general Wolfram Language expressions is LineSpacing->{1.25,0,2}.
  • In ordinary text, LineSpacing determines the spacing between lines produced by automatic linebreaking. For lines produced by explicit newline characters, ParagraphSpacing is added.
  • In Wolfram Language expressions, LineSpacing is used whether lines are produced by automatic linebreaking or by explicit newline characters.
  • Extra space specified by LineSpacing is inserted equally above and below a line, except that no extra space is inserted before the first line or after the last line of an expression or cell.

Examples

open allclose all

Basic Examples  (3)

Double spacing:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Make the height of each line 10 printer's points:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Single spacing with 5 printer's points of extra space added to each line:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Scope  (2)

See Also

FontSize  ParagraphSpacing

Tutorials

Introduced in 1996
(3.0)
| Updated in 2007
(6.0)