is an option which can be set for output streams to specify the maximum total number of characters of text that should be printed for each output expression. Short forms of expressions are given if the number of characters needed to print the whole expression is too large.


  • TotalWidth bounds the actual numbers of characters generated. Line breaks are not counted.
  • TotalWidth->Infinity allows expressions of any length to be printed.
  • SetOptions[stream, TotalWidth->n] resets the total width allowed for an open stream.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Set the TotalWidth to be 60 characters for a stream:

Click for copyable input
Click for copyable input

Set the TotalWidth to be 30 characters for a stream:

Click for copyable input
Click for copyable input

Compare the two resulting files:

New in 1
New to Mathematica? Find your learning path »
Have a question? Ask support »