This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / New in Version 3.0 / Notebooks  /

  • 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.



    This writes out an expression to the stream.


    This closes the stream.



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


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