[NTG-context] Bib bug in using months

Aditya Mahajan adityam at umich.edu
Thu May 11 01:53:24 CEST 2006


On Tue, 9 May 2006, Taco Hoekwater wrote:

> Aditya Mahajan wrote:
>>
>>
>> Thanks. For my present project I need short month names, and the
>> deadline is tomorrow. So, I will stick to the manual solution at the
>> moment.
>
> There should be no need for manual fixes, just do this:
>
>   \unprotect
>   \def\insertmonth#1#2#3%
>    {\bibdoifelse{\@@pb at month}%
>       {#1\doifnumberelse{\@@pb at month}%
>           {\@EA\doconvertshortmonth\@EA{\@@pb at month}}%
>           {\@@pb at month}#2}{#3}}
>   \protect
>   \def\doconvertshortmonth#1%
>     {\ifcase#1\or % adjust names as you like
>      jan\or feb\or mar\or apr\or may\or jun\or
>      jul\or aug\or sep\or oct\or nov\or dec\else !!!\fi }


Thanks,

\def\doconvertshortmonth#1%
   {\ifcase#1\or % adjust names as you like
    Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or
    July\or Aug.\or Sep.\or Oct.\or Nov.\or Dec.\else !!!\fi }

gives me exactly what I want.


Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008


More information about the ntg-context mailing list