%%
%% The LaTeX Companion, 3ed
%%
%% Example 3-3-2 on page I-155 in "fmtcount --- Ordinals and cardinals".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{135.0pt}
\sloppy % not much space available

\setlength\parindent{0pt}

%StartShownPreambleCommands
\usepackage{fmtcount}
\newcommand\nth[1]{\ordinalstringnum{#1}}
%StopShownPreambleCommands

\begin{document}
We select the \nth{1}, \nth{13}, \nth{14} and \nth{22}.
\end{document}
