Is there a trick to get over this issue? Until a conversion mechanism like what you suggested (\currentdate[persian->day,space,month,persian->month]) is implemented, can I somehow achieve a similar result, perhaps in a not so clean way? Can one reduce the result of \currentdate to a simple number by stripping the additional stuff that is there? Similarly, can I force \currentdate to expand or is it a fundamental implementation limitation? Can I access day, month and year values in Lua, to run some if statements, etc.? For instance, if it is the first day of April, change the font of the document or something like that. —MHB On Thu, Jul 7, 2016 at 7:32 PM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > Mohammad Hossein Bateni > 7. Juli 2016 um 16:31 > Thanks, Wolfgang! > > BTW why doesn't the following work? it gives the 'missing number' error. > > % \mainlanguage[en] > \romannumerals{\currentdate[day]} > > 1. The \currentdate command isn’t expandable and is therefore not expanded > when you use it as argument for another command. > > 2. The \romannumerals commands expects a number as argument but > \currentdate returns more than a simple number. > > Wolfgang > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ >