11

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?

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.

migrated from stackoverflow.com Mar 21 '11 at 18:09

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

  • \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
  • 2
    Another related question: 1st, 2nd and i-th? – Hendrik Vogt Mar 21 '11 at 18:15
8

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
  • 2
    Depending on fonts, I find that $n^{\text{\tiny th}}$ often looks much better. – ESultanik Mar 29 '11 at 20:02