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

OpenersNotesSection(Spacer1)Details and Options

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

(RefLink[SubsuperscriptBox, paclet:ref/SubsuperscriptBox])[x,y,z] can be input as x∖_y∖%z when inside ∖(…∖).

To create a (RefLink[SubsuperscriptBox, paclet:ref/SubsuperscriptBox]) in a notebook, use either (Key1[ctrl, _]) to begin a regular subscript or (Key1[ctrl, ^]) to begin a regular superscript. After typing the first script, use (Key1[ctrl, %]) to move to the opposite script position. (Key1[ctrl, space]) moves out of the subscript or superscript position.

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

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

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

In (RefLink[StandardForm, paclet:ref/StandardForm]), explicit (RefLink[SubsuperscriptBox, paclet:ref/SubsuperscriptBox]) objects are output literally. You can use (RefLink[RawBoxes, paclet:ref/RawBoxes]) to see the boxes in typeset form.

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Display a letter with a subscript and a superscript:

SubsuperscriptBox["x","0","n"]//DisplayForm

A (RefLink[SubsuperscriptBox, paclet:ref/SubsuperscriptBox]) form is typically interpreted as a power of a (RefLink[Subscript, paclet:ref/Subscript]) expression:

ToExpression[SubsuperscriptBox["x","0","n"],StandardForm]

%//FullForm

The standard formatting for a power of a (RefLink[Subscript, paclet:ref/Subscript]) expression uses (RefLink[SubsuperscriptBox, paclet:ref/SubsuperscriptBox]):

ToBoxes[Subscript[x,0]^n,StandardForm]//FullForm

The formatted result looks like this:

Subscript[x,0]^n

OpenersExampleSection2(Spacer1)Properties & Relations  (1)

(RefLink[Subsuperscript, paclet:ref/Subsuperscript]) formatting uses a (RefLink[TemplateBox, paclet:ref/TemplateBox]) to achieve its formatting:

ToBoxes[Subsuperscript[x,0,n],StandardForm]

The (RefLink[TemplateBox, paclet:ref/TemplateBox]) uses (RefLink[SubsuperscriptBox, paclet:ref/SubsuperscriptBox]) in its (RefLink[DisplayFunction, paclet:ref/DisplayFunction]):

CurrentValue[{StyleDefinitions,"Subsuperscript"}]

The interpretation is not obvious in the formatted result:

{Subsuperscript[x,0,n],Subscript[x,0]^n}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Subsuperscript, paclet:ref/Subsuperscript])  ▪  (RefLink[SubscriptBox, paclet:ref/SubscriptBox])  ▪  (RefLink[SuperscriptBox, paclet:ref/SuperscriptBox])  ▪  (RefLink[UnderoverscriptBox, paclet:ref/UnderoverscriptBox])}})}})

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

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

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-NKS.png(Spacer1)NKS|Online, http://www.wolframscience.com/nksonline/index/search.cgi?SearchIndex=SubsuperscriptBox]) ((WebLink[A New Kind of Science, http://www.wolframscience.com/nksonline/]))}})}})