InterpretationBox
InterpretationBox[boxes,expr]
is a low-level box construct that displays as boxes but is interpreted on input as expr.
Details
- InterpretationBox is used in the low-level representation of Interpretation. Except for low-level notebook expression manipulation, InterpretationBox should not need to be used directly.
- InterpretationBox provides a way to store hidden information in Wolfram Language output.
- InterpretationBox is generated sometimes in StandardForm output, and often in TraditionalForm output.
- The following options can be given:
-
AutoDelete False whether to strip the InterpretationBox if boxes is modified BaseStyle {} the style to use DeletionWarning False whether to issue a warning if boxes is deleted Editable False whether to allow boxes to be edited Selectable Automatic whether to allow boxes to be selected SyntaxForm Automatic how the box should be interpreted for parsing purposes - If you modify the displayed form of InterpretationBox[boxes,expr] only boxes will be modified, and there is no guarantee that correct correspondence with expr will be maintained.
- InterpretationBox has attribute HoldAllComplete.
Examples
open allclose allBasic Examples (3)
Make a formatting structure whose interpretation is not based on its appearance:
An InterpretationBox is interpreted as the expression in its second argument:
Copying the interpretation box and using it as input also evaluates the hidden interpretation:
InterpretationBox is used in the standard formatting of Interpretation objects:
The first argument of the InterpretationBox gives its visible format:
The TraditionalForm formatting for some built-in symbols uses InterpretationBox:
In the typeset result, this expression displays as a long dash:
The InterpretationBox allows this form to be used as input without losing its meaning:
Properties & Relations (1)
TextClipboardType affects how InterpretationBox is written to the system textual clipboard:
"PlainText" will cause the first argument to be copied to the clipboard:
plain text
Any other value will cause the input form of the second argument to be copied to the clipboard:
"input text"
Text
Wolfram Research (1996), InterpretationBox, Wolfram Language function, https://reference.wolfram.com/language/ref/InterpretationBox.html (updated 2020).
CMS
Wolfram Language. 1996. "InterpretationBox." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/InterpretationBox.html.
APA
Wolfram Language. (1996). InterpretationBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InterpretationBox.html