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:

Display expressions using StandardForm:

Labels are also affected by the FormatType setting:

Possible Issues  (1)

When different format types are combined the result is likely to be unpredictable:

This is equivalent to:

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