[texhax] Counters as ordinal numbers

VAFA KHALIGHI vafaklg at gmail.com
Mon Sep 19 03:43:30 CEST 2011


Hello

I need to have a counter that counts like "first, second, third, fourrth,
...".  (say up to ten thousandth). I can create a counter and put all of
these in it just like:

\def\@mycounter#1{%
  \ifcase#1\or First\or Second\or Third\or ...\else\@ctrerr\fi}

\def\mycounter#1{\expandafter\@mycounter\csname c@#1\endcsname}

But it will be  very annoying to put each single of these in \@mycounter. I
was wondering if you know a better solution.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110919/ca971c7a/attachment.html>


More information about the texhax mailing list