({{, (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox])[x,y]
is the low-level box representation for (x^y) in notebook expressions. }})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[SuperscriptBox, paclet:ref/SuperscriptBox]) is the low-level representation of (RefLink[Superscript, paclet:ref/Superscript]). Except for low-level notebook expression manipulation, (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox]) should not need to be used directly.

Inside \(…\) (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox])[x,y] can be input as x∖^y.

In a notebook a (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox]) can be created using (Key1[ctrl, 6]) or (Key1[ctrl, ^]). (Key1[ctrl, space]) moves out of the superscript.

In (RefLink[StandardForm, paclet:ref/StandardForm]), (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox])[x,y] is interpreted on input as (RefLink[Power, paclet:ref/Power])[x,y].

The baseline of (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox])[x,y] is taken to be the baseline of x.

(RefLink[SuperscriptBox, paclet:ref/SuperscriptBox])[x,y] is usually output with y in a smaller font than x.

In (RefLink[StandardForm, paclet:ref/StandardForm]), explicit (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox]) objects are output literally. You can use (RefLink[DisplayForm, paclet:ref/DisplayForm]) to see the display form of such objects.

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Display a letter with a superscript:

SuperscriptBox["x","3"]//DisplayForm

A (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox]) form is typically interpreted as a power:

ToExpression[SuperscriptBox["x","3"],StandardForm]

%//FullForm

The standard formatting for (RefLink[Power, paclet:ref/Power]) expressions uses (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox]):

ToBoxes[x^n,StandardForm]//FullForm

Display a typeset structure with a superscript on a superscript:

SuperscriptBox["2",SuperscriptBox["2","m"]]//DisplayForm

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Superscript, paclet:ref/Superscript])  ▪  (RefLink[SubscriptBox, paclet:ref/SubscriptBox])  ▪  (RefLink[SubsuperscriptBox, paclet:ref/SubsuperscriptBox])  ▪  (RefLink[OverscriptBox, paclet:ref/OverscriptBox])  ▪  (RefLink[ScriptSizeMultipliers, paclet:ref/ScriptSizeMultipliers])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Representing Textual Forms by Boxes, paclet:tutorial/RepresentingTextualFormsByBoxes])}, {▪(RefLinkPlain[String Representation of Boxes, paclet:tutorial/StringRepresentationOfBoxes])}, {▪(RefLinkPlain[Formatted Output, paclet:tutorial/FormattedOutput])}, {▪(RefLinkPlain[Typing Superscripts, paclet:tutorial/TypingSuperscripts])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Low-Level Notebook Structure, paclet:guide/LowLevelNotebookStructure])}})}})