This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Input and Output / Format Types /


FilledSmallSquare Format[expr] prints as the formatted form of expr.

FilledSmallSquare Assigning values to Format[expr] defines print forms for expressions.

FilledSmallSquare Format[expr, form] gives a format for the specified form of output.

FilledSmallSquare Standard forms for formatted output are:

FilledSmallSquare You can add your own forms for formatted output.

FilledSmallSquare Example: Format[s] := rhs defines a symbol s to print like rhs.

FilledSmallSquare Format[f[ ... ]] := rhs defines a function f to print like rhs.

FilledSmallSquare Definitions for Format are stored in the FormatValues of a symbol.

FilledSmallSquare If you specify a new output format for an expression by giving a definition for Format, there is no guarantee that Mathematica will be able to interpret this output format if it is used as input.

FilledSmallSquare Definitions given for Format are used before those given for MakeBoxes.

FilledSmallSquare See Section 2.9.16.

FilledSmallSquare See also: ToString, ToBoxes, MakeBoxes, MakeExpression.

FilledSmallSquare New in Version 1; modified in 4.1.

Further Examples