Donald Arseneau writes:
I see there is no nth.sty on ctan, so I uploaded a new-revised version to Cambridge.
Public domain license.
To go in macros/latex/contrib/other/misc or in macros/generic/?
% nth.sty version 2002/27/02 Donald Arseneau % Ordinal numbering style, 1st 2nd 3rd 4th 5th... 12th... 101st 102nd... % % (Public domain: take, include, extract, whatever) % % In LaTeX: % usepackage[super,negative]{nth} % where option [super] gives superscript `th' % and option [negative] allows ``st, nd, rd'' suffixes on negative numbers. % % example:
enewcommand{ hesection}{ordinal{section}}
% or
enewcommand{ hesection}{@ordinalc@section}
% or
enewcommand{ hesection}{ thc@section}
% % In plain TeX: % input nth.sty % use:
th{<number>}.
% Change formatting by redefining
thscript and thtest
i've installed the file in macros/generic/nth.sty (since it looks as if it is just that). thanks for the upload.
Robin Fairbairns
For the CTAN team