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.

Details

  • Typical settings for FormatType include:
  • Automaticinherit from surrounding constructs
    InputFormone-dimensional form suitable for direct keyboard input
    OutputFormcharacterbased 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, boxbased format types such as StandardForm and TraditionalForm can be used only when a notebook front end is present.

Examples

open allclose all

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]=

Possible Issues  (1)

See Also

BaseStyle  LanguageCategory

Tutorials

Introduced in 1988
(1.0)
| Updated in 1996
(3.0)