InterpretationBox

InterpretationBox[boxes, expr]
is a low-level box construct that displays as boxes but is interpreted on input as expr.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Make a formatting structure whose interpretation is not based on its appearance:

In[1]:=
Click for copyable input
Out[1]//DisplayForm=

An InterpretationBox is interpreted as the expression in its second argument:

In[2]:=
Click for copyable input
Out[2]=

Copying the interpretation box and using it as input also evaluates the hidden interpretation:

In[3]:=
Click for copyable input
Out[3]=

InterpretationBox is used in the standard formatting of Interpretation objects:

In[1]:=
Click for copyable input
Out[1]//FullForm=

The first argument of the InterpretationBox gives its visible format:

In[2]:=
Click for copyable input
Out[2]=

The TraditionalForm formatting for many built-in functions uses InterpretationBox:

In[1]:=
Click for copyable input
Out[1]=

In the typeset result, the letter stands for EllipticNomeQ:

In[2]:=
Click for copyable input
Out[2]//TraditionalForm=

The InterpretationBox allows this form to be used as input without losing its meaning:

In[3]:=
Click for copyable input
Out[3]=
New in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »