Superscript standalone text

How do I write a superscript text standalone, without implying power? E.g.


doesn’t format well, italicizing o and leaving whitespace in-between the number and Centigrade symbol.

How do I in general write text which is superscripted?




For your specific example, you can simply use \[Degree]C
– xzczd
Jan 15 at 6:11


2 Answers


How do I write a superscript text standalone, without implying power?

Like this

Superscript[“”, “more text”]

As pointed out by MikeLimaOscar, Superscript[\[Null], “more text”] will produce something similar without a string in the main part of the text.

If you need to put text after the subscript rather than before, you can follow the directions here or do something like this

Row[{Superscript[“”, “more text”], “text”}]



but how to do superscript without the “text” part, so it will output “more text” superscript, without any white spaces before it?
– Al Guy
Jan 15 at 8:22



Sorry, misunderstood your question, I think you can just use a blank string there
– JasonB
Jan 15 at 8:24



There is also the invisible character, \[Null], that can be used as the base of super/subscripts.
– MikeLimaOscar
Jan 15 at 9:28



Thanks, that’s even better. I was trying Null but it would actually print Null
– JasonB
Jan 15 at 9:29



@AlGuy, that isn’t what you mentioned in the first post. Try to describe exactly what you are looking for from the get go. A “standalone superscript” is much different than a superscript on the left.
– JasonB
Jan 15 at 10:27

If it is this specific example you are interested in, you could have found it out yourself by evaluating

Quantity[25, “DegreesCelsius”]

and then pressing Ctrl+Shift+E when the cursor is in the output cell. There, you would have found

TemplateBox[{“25″,”\”\[Degree]C\””,”degrees Celsius”,”\”DegreesCelsius\””},

which would have given you the hint that xzczd gave you. Therefore, you can use