Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
4  
See this column in TUGboat for information about not using a superscript "th" – egreg Mar 8 '12 at 22:41
@egreg Interesting! – Nico May 14 at 15:17

1 Answer

up vote 20 down vote accepted

You can use \textsuperscript{th}. It sets its contents in text mode and can be used in math or text mode.

share|improve this answer
Actually, this only really works outside math mode. If I try $n^\textsuperscript{th}$, the superscript gets raised too high, creating an awkwardly large space between lines. But $n$\textsuperscript{th} works great--thanks! – jamaicanworm Mar 9 '12 at 0:49
6  
@jamaicanworm: You should use $n\textsuperscript{th}$. – Werner Mar 9 '12 at 0:50
6  
$n^\textsuperscript{th}$ is a double superscript. – Philipp Mar 9 '12 at 0:51
1  
Right! Silly mistake... :) – jamaicanworm Mar 9 '12 at 0:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.