# Typesetting “nth” in LaTeX [duplicate]

Possible Duplicates:

Is there a standard/best practice for typesetting "nth" in LaTeX? Right now I've got $n$th, but that looks a bit weird, with the math-mode n right next to the standard-text th. I've also considered $n^\text{th}$ (which really seems like too much work). I'm sure there's some ridiculously simple solution--I just haven't found it yet. Can you please clue me in?

-

## migrated from stackoverflow.comMar 21 '11 at 18:09

This question came from our site for professional and enthusiast programmers.

## marked as duplicate by Hendrik Vogt, Jake, Martin Scharrer♦Mar 21 '11 at 18:27

\newcommand{\nth}{$n^\text{th}$} ? –  geekosaur Mar 21 '11 at 18:05
In mathematical texts it is normal to write $n$th. If you want it in superscript (not usual for mathematics AFAIK) you could use $n^{\text{th}}$.
it should be mentioned that it requires amsmath for \text. Also putting it in \ensuremath instead of $...$ would be more fool-proof. –  Martin Scharrer Mar 21 '11 at 18:25
Depending on fonts, I find that $n^{\text{\tiny th}}$ often looks much better. –  ESultanik Mar 29 '11 at 20:02