TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from stackoverflow.com Mar 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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

\newcommand{\nth}{$n^\text{th}$} ? – geekosaur Mar 21 '11 at 18:05
This belongs on tex.stackexchange.com – Assaf Mar 21 '11 at 18:06
Another related question: 1st, 2nd and i-th? – Hendrik Vogt Mar 21 '11 at 18:15

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}}$.

share|improve this answer
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