40

Assume I wish to refer to the i-th object, or the n-th function out of some set, where i and n are letters and not numbers (as in "Multiply the $j$th row with the $i$th column and store the result in the $k$th memory cell, where $k=i+j$")

How do you suggest to write it?

$n$th is just confusing, $n$-th seems weird, and $n^{\text{th}}$, which is my current choice, is (pardon me) simply ugly.

Any suggestions?

Roland
  • 6,655
Ran G.
  • 1,648

5 Answers5

18

In my experience $n$th is most widely used (like here). Personally I don't think it's ugly compared to the other two options and I think it's quite readable.

Andrew
  • 1,514
14

AMS Style Guide has a strong opinion on this one.

See section 12.7.5.3.

Symbol 1
  • 36,855
  • 2
    Is it just a taste or is there a reason behind it? I think x-th is more readable. – zyy Nov 04 '21 at 12:00
  • 1
    It's meant to be dictatorial. You either follow without questioning or not follow for good reasons. – Symbol 1 Nov 04 '21 at 16:22
  • If this happens in the statement of a theorem, it is italicized, and $i$th is really looks like ith, with no visual separator between i and th. Which does not look good at all. – mathreader Sep 28 '22 at 09:04
11

$n$th is compatible with the command \nth{} which is called-upon by the package nth...

\documentclass{book}
\usepackage{nth}
\begin{document}
\nth{3} is not the same as $\nth{3}$
\end{document}

b.t.w. as far as I know this command only work with numbers...

user1999
  • 1,464
0

I'd suggest to write it as $n$ᵗʰ.

Some more details at https://tex.stackexchange.com/a/621236/112999.

mdeff
  • 125
-1

$n^{\text{th}}$ is the best if you want to write nth in TEX.

dustin
  • 18,617
  • 23
  • 99
  • 204
  • 9
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. I don't want to disturb you, but (1) this was already proposed in the question itself, so as long as you don't accompany it with any relevant sources, it doesn't bring anything new to the topic, and (2) this is the second most ugly solution, after $n^{\text{\tiny th}}$, so very far from being the best. – yo' Oct 02 '14 at 20:12
  • $n^{\textnormal{th}}$ does not require any package! – Say OL Apr 18 '18 at 04:06
  • 1
    Why is it the best? Why is it better than the other answers? – jvriesem Jul 29 '20 at 16:31