Re: [NTG-context] Bib bug in using months

2006-05-10 Thread Aditya Mahajan
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{\@@[EMAIL PROTECTED]
   {#1\doifnumberelse{\@@[EMAIL PROTECTED]
   [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
   {\@@[EMAIL PROTECTED]
   \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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bib bug in using months

2006-05-09 Thread Aditya Mahajan
On Mon, 8 May 2006, Taco Hoekwater wrote:


 Hi Aditya,


 Aditya Mahajan wrote:
 However, the bib module does not support this naming scheme. I get

 \month{1}
 \month{2}

 etc in my bbl file. Can this be corrected?

 Sure, it is just an oversight. For this to work, only a redefinition
 of \insertmonth is needed (I had intented that all along, just
 forgot to implement it), For now, just add this somewhere after
 the loading of the bib module.

   \unprotect
   \def\insertmonth#1#2#3%
 {\bibdoifelse{\@@[EMAIL PROTECTED]
{#1\doifnumberelse{\@@[EMAIL PROTECTED]
   [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
   {\@@[EMAIL PROTECTED]
   \protect

 That will give you the full month name according to the current
 language labeltext for the month names. Not perfect yet, but better.

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.


 I'll ask Hans to provide true \numberconversions for month names in
 short and long format, so I can extend the module officially.

That will be great.

Aditya


-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bib bug in using months

2006-05-09 Thread Taco Hoekwater
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{\@@[EMAIL PROTECTED]
   {#1\doifnumberelse{\@@[EMAIL PROTECTED]
   [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
   {\@@[EMAIL PROTECTED]
   \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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bib bug in using months

2006-05-08 Thread Taco Hoekwater

Hi Aditya,


Aditya Mahajan wrote:
 However, the bib module does not support this naming scheme. I get
 
 \month{1}
 \month{2}
 
 etc in my bbl file. Can this be corrected?

Sure, it is just an oversight. For this to work, only a redefinition
of \insertmonth is needed (I had intented that all along, just
forgot to implement it), For now, just add this somewhere after
the loading of the bib module.

   \unprotect
   \def\insertmonth#1#2#3%
 {\bibdoifelse{\@@[EMAIL PROTECTED]
{#1\doifnumberelse{\@@[EMAIL PROTECTED]
   [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
   {\@@[EMAIL PROTECTED]
   \protect

That will give you the full month name according to the current
language labeltext for the month names. Not perfect yet, but better.

I'll ask Hans to provide true \numberconversions for month names in
short and long format, so I can extend the module officially.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context