[texhax] Superscript ordinal indicators in dates?

Joel C. Salomon joelcsalomon at gmail.com
Fri Jun 5 19:11:54 CEST 2009

2009/6/5 Joel C. Salomon <joelcsalomon at gmail.com>:
> So I followed Uwe & Donald's advice, and kept an eye out for how the
> packages format the raised ordinals. Since the nth package uses
> \textsuperscript rather than playing math games, I thought to say:
>        \usepackage[super]{nth}
>        \def\mydate{\ifcase\month\or
>                January\or February\or March\or April\or May\or June\or July\or August\or
>                September\or October\or November\or December\fi~\nth{day},\space
> \number\year}
>        \date{\mydate}
> But that’s not working—I get a "missing number" from \maketitle.  What
> am I doing wrong?

Never mind; I noticed I was using \nth{day} instead of \nth{\day};
fixed & now it works.

> Also, I’d like to hook in into LaTeX date formatting so that the
> \today command will be formatted as I’d prefer.

And I found datetime.sty.  All is well.

Thanks for the help,

More information about the texhax mailing list