What is the easiest way to superscript text outside of math mode?
For example, let’s say I want to write the $n^{th}$ element
, but without the math mode’s automatic italicization of the th
. And what if I still want the n
to be in math mode, but the th
outside?
You can use \textsuperscript{th}. It sets its contents in text mode and can be used in math or text mode.