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 some built-in symbols uses InterpretationBox:

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

In the typeset result, this expression displays as a long dash:

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]=
Introduced in 1996
(3.0)