Mathematica > Notebooks and Documents > Notebook Formatting & Styling > Text Styling > Text Layout Options > PageWidth >

PageWidth

PageWidth
is an option for output streams and for cells which specifies how wide each line of text should be allowed to be.
  • Possible settings for output streams are:
Infinityan infinite width (no linebreaking)
nexplicit width in characters
  • SetOptions resets the line width allowed for an open stream.
  • Possible settings for cells are:
WindowWidththe width of the window on the screen
PaperWidththe width of the page as it would be printed
nexplicit width given in printer's points
  • PageWidth allows each line to use the full width of the displayed window, taking into account settings for CellMargins.
Set the PageWidth to be 60 characters for a stream:
Set the PageWidth to be 30 characters for a stream:
Compare the two resulting files:
Set the PageWidth to be 60 characters for a stream:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Set the PageWidth to be 30 characters for a stream:
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Compare the two resulting files:
New in 1 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF