[NTG-context] Bib bug in using months

Taco Hoekwater taco at elvenkind.com
Tue May 9 21:26:08 CEST 2006


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 }

Cheers, Taco


More information about the ntg-context mailing list