There is code to do this (or something similar) in the memoir class.<div><br></div><div> -tom</div><div><br><br><div class="gmail_quote">On Sun, Sep 18, 2011 at 9:43 PM, VAFA KHALIGHI <span dir="ltr"><<a href="mailto:vafaklg@gmail.com">vafaklg@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Hello<br><br>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:<br>
<br>\def\@mycounter#1{%<br>
\ifcase#1\or First\or Second\or Third\or ...\else\@ctrerr\fi}<br><br>\def\mycounter#1{\expandafter\@mycounter\csname c@#1\endcsname}<br><br>But it will be very annoying to put each single of these in \@mycounter. I was wondering if you know a better solution.<br>
<br>Thanks<br></div>
<br>_______________________________________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br></blockquote></div><br></div>