DisplayForm

DisplayForm[expr]

prints with low-level boxes inside expr shown in explicit two-dimensional or other form.

Details

Examples

open allclose all

Basic Examples  (1)

Display a box expression as formatted:

Scope  (5)

Formatting for a row of elements:

Display nested boxes:

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:

Display with row and column lines:

Add a frame:

Display using italic slant:

Display using Title cell style:

Properties & Relations  (3)

Evaluate an expression:

Convert to boxes:

Display the boxes:

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:

Wolfram Research (1996), DisplayForm, Wolfram Language function, https://reference.wolfram.com/language/ref/DisplayForm.html.

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

BibTeX

@misc{reference.wolfram_2024_displayform, author="Wolfram Research", title="{DisplayForm}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/DisplayForm.html}", note=[Accessed: 14-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_displayform, organization={Wolfram Research}, title={DisplayForm}, year={1996}, url={https://reference.wolfram.com/language/ref/DisplayForm.html}, note=[Accessed: 14-November-2024 ]}