|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
TagBox
TagBox[boxes, tag]
is a low-level box construct that displays as boxes but maintains tag to guide the interpretation of boxes on input.
Details and OptionsDetails and Options
- TagBox provides a way to store hidden information in Mathematica input and output.
- TagBox is generated sometimes in StandardForm output, and often in TraditionalForm output.
- By convention, tag is typically a symbol that corresponds to the head of the interpreted form of boxes.
- The following options can be given:
-
AutoDelete False whether to strip the TagBox if boxes are modified DeletionWarning False whether to issue a warning if boxes are deleted Editable Automatic whether to allow boxes to be edited Selectable Automatic whether to allow boxes to be selected StripWrapperBoxes False whether to remove StyleBox etc. from within boxes Tooltip None tooltip to display when the mouse cursor is over the box TooltipStyle {} style specifications for the tooltip TooltipDelay 0. how long to delay before displaying the tooltip - If you modify the displayed form of TagBox[boxes, tag] only boxes will be modified, and there is no guarantee that correct correspondence with tag will be maintained.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
TagBox does not change the appearance of its contents:
| In[1]:= |
| Out[1]= |
The standard formatting for some expressions uses TagBox to aid interpretation:
| In[1]:= |
| Out[1]= |
The formatted result looks like this:
| In[2]:= |
| Out[2]= |
Without the TagBox, this notation would be interpreted differently:
| In[3]:= |
| Out[3]= |
A GridBox is normally interpreted as a matrix:
| In[1]:= |
| Out[1]= |
Use a predefined TagBox interpretation to get a different result:
| In[2]:= |
Out[2]//InputForm= | |
New in 3
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
