[texhax] Counters as ordinal numbers

VAFA KHALIGHI vafaklg at gmail.com
Tue Sep 20 04:33:58 CEST 2011


Thanks a lot. For all the replies. I wanted to do do this for Persian since
it is a bit different to English and German. I ended up using the code from
zahl2string package.

http://ctan.org/pkg/zahl2string

On Mon, Sep 19, 2011 at 11:11 PM, Tom Sgouros <tomfool at as220.org> wrote:

> There is code to do this (or something similar) in the memoir class.
>
>  -tom
>
>
> On Sun, Sep 18, 2011 at 9:43 PM, VAFA KHALIGHI <vafaklg at gmail.com> wrote:
>
>> 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
>>
>> _______________________________________________
>> TeX FAQ: http://www.tex.ac.uk/faq
>> Mailing list archives: http://tug.org/pipermail/texhax/
>> More links: http://tug.org/begin.html
>>
>> Automated subscription management: http://tug.org/mailman/listinfo/texhax
>> Human mailing list managers: postmaster at tug.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110920/4f3c170c/attachment.html>


More information about the texhax mailing list