Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Notebook Formatting & Styling > Text Styling > Text Layout Options > TextJustification >

TextJustification

TextJustification
is an option for Cell and Inset which specifies how much lines of text can be stretched in order to make them be the same length.
  • TextJustification does full justification, and forces all complete lines to be the same length.
  • No stretching is done on lines that end with explicit newline characters.
  • With TextJustification->s, Mathematica will take the amount by which each broken line is shorter than PageWidth, and then insert within the line a total amount of space equal to s times this.
  • If TextJustification is not , the standard Mathematica front end will dynamically adjust the lengths of lines as you enter text.
Create some random text with irregular word lengths:
Create text cells with different settings for TextJustification:
Create some random text with irregular word lengths:
In[1]:=
Click for copyable input
Create text cells with different settings for TextJustification:
In[2]:=
Click for copyable input
New in 3 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF