FormatType

FormatType
is an option for output streams, graphics, and functions such as Text that specifies the default format type to use when outputting expressions.

DetailsDetails

  • Typical settings for FormatType include:
  • Automaticinherit from surrounding constructs
    InputFormone-dimensional form suitable for direct keyboard input
    OutputFormcharacter-based two-dimensional form
    StandardFormstandard two-dimensional form
    TraditionalFormform approximating traditional mathematical notation
  • SetOptions[stream, FormatType->type] resets the format type for an open stream.
  • For graphics functions, box-based format types such as StandardForm and TraditionalForm can be used only when a notebook front end is present.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

By default, expressions are displayed using TraditionalForm in graphics:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Display expressions using StandardForm:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Labels are also affected by the FormatType setting:

In[1]:=
Click for copyable input
Out[1]=
New in 1 | Last modified in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »