This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / New in Version 3.0 / Notebooks  /
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 both output streams and cells are:
  • SetOptions[ stream , PageWidth -> val ] resets the line width allowed for an open stream.
  • Possible settings for cells only are:
  • PageWidth->WindowWidth allows each line to use the full width of the displayed window, taking into account settings for CellMargins.
  • See the Mathematica book: Section 2.10.10Section 2.11.3.
  • See also: TotalWidth, TextJustification, AutoIndent.

    Further Examples

    This opens a stream, specifying that the page width is 20 characters.

    In[1]:=

    Out[1]=

    This writes out an expression to the stream.

    In[2]:=

    This closes the stream.

    In[3]:=

    Out[3]=

    The lines in the expression written out are all broken so as to be at most 20 characters.

    In[4]:=

    x^5 + 5*x^4*y +
    10*x^3*y^2 +
    10*x^2*y^3 +
    5*x*y^4 + y^5