OverscriptBox

OverscriptBox[x,y]
is the lowlevel box representation for in notebook expressions.

Details and OptionsDetails and Options

  • OverscriptBox is the low-level representation of Overscript. Except for low-level notebook expression manipulation, OverscriptBox should not need to be used directly.
  • Inside \(\) OverscriptBox[x,y] can be input as x\&y.
  • In a notebook, an OverscriptBox can be created using Ctrl+7 or Ctrl+&. Ctrl+Space moves out of the overscript position.
  • In StandardForm, OverscriptBox[x,y] is interpreted on input as Overscript[x,y].
  • The following special interpretations are made:
  • OverscriptBox[x,"_"]OverBar[x]
    OverscriptBox[x,""]OverVector[x]
    OverscriptBox[x,"~"]OverTilde[x]
    OverscriptBox[x,"^"]OverHat[x]
    OverscriptBox[x,"."]OverDot[x]
  • For these special cases special input forms such as x\&_ can be used.
  • The baseline of OverscriptBox[x,y] is taken to be the baseline of x.
  • OverscriptBox[x,y] is usually output with y in a smaller font than x.
  • With the option setting LimitsPositioning->True, y is placed in an overscript position when the whole OverscriptBox is displayed large, and in a superscript position when it is displayed smaller.
  • In StandardForm, explicit OverscriptBox objects are output literally. You can use DisplayForm to see the display form of such objects.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Display a letter with an overscript:

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

An OverscriptBox form is typically interpreted as an Overscript expression:

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

The standard formatting for Overscript uses OverscriptBox:

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

The formatted result looks like this:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 1996
(3.0)
| Updated in 2007
(6.0)
Translate this page: