DisplayForm
DisplayForm[expr]
prints with low-level boxes inside expr shown in explicit two-dimensional or other form.
Details
- In ordinary StandardForm output, boxes such as SubscriptBox are shown literally. In DisplayForm they are shown as explicit two-dimensional constructs.
- When an input evaluates to DisplayForm[expr], DisplayForm does not appear in the output. »
Examples
open allclose allScope (5)
Formatting for a row of elements:
A subscript and superscript as nested boxes:
A subscript and superscript in a single box:
Vector notation from an OverscriptBox:
Symbolic sum displayed using an UnderoverscriptBox:
Display a GridBox:
Properties & Relations (3)
Display an InterpretationBox:
The box is interpreted as the second argument:
When an input evaluates to DisplayForm[expr], DisplayForm does not appear in the output:
Out is assigned the value RowBox[{"2","+","2"}], not DisplayForm[RowBox[{"2","+","2"}]]:
Possible Issues (1)
Even when an output omits DisplayForm from the top level, it is not stripped from subexpressions:
The output does not have DisplayForm in it:
However, the variable e does have DisplayForm in it, which may affect subsequent evaluations:
The MakeExpression gives an error due to the intervening DisplayForm:
Assign variables first and then apply DisplayForm to the result to maintain computability:
Text
Wolfram Research (1996), DisplayForm, Wolfram Language function, https://reference.wolfram.com/language/ref/DisplayForm.html.
CMS
Wolfram Language. 1996. "DisplayForm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DisplayForm.html.
APA
Wolfram Language. (1996). DisplayForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DisplayForm.html