StripWrapperBoxes

StripWrapperBoxes

is an option to TagBox that controls how boxes are stripped upon evaluation.

Details

  • When a TemplateBox[{shift, return}, Key1, BaseStyle -> {Notes, FontWeight -> Plain, FontFamily -> Source Sans Pro}] evaluation takes place, the front end sends a box representation of the input to the kernel. The box representation may be stripped of some boxes so that their presence will have no effect upon evaluation semantics.
  • The default setting of StripWrapperBoxes->False on TagBox prevents any boxes inside the TagBox from being stripped.
  • StripWrapperBoxes->True restores the stripping behavior.

Examples

Basic Examples  (2)

Although FrameBox would typically be stripped by default, it is not stripped in a TagBox:

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

StripWrapperBoxes->True restores the default stripping behavior:

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

See Also

StripOnInput  StripBoxes  MakeExpression

Introduced in 2007
(6.0)