Right, I forgot about the catcodes. Thank you. -- Cédric
On Fri, Oct 15, 2010 at 15:37, Peter Münster <pmli...@free.fr> wrote: > On Fri, Oct 15 2010, Cedric Mauclair wrote: > >> Any ideas? > > Test file: > > \def\mydate{\doifnextcharelse\space\domydate\domydate } > \def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]} > \starttext > \mydate 2/1/2011 \par % token #3 = 2 > \mydate 2/1/2 \par % token #3 = 2 > \mydate 2/1/{2011} \par % token #3 = 2011 > \stoptext > > Cheers, Peter > > -- > Contact information: http://pmrb.free.fr/contact/ > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________