Mohammad Hossein Bateni
bateni at gmail.com
Mon Aug 1 18:31:09 CEST 2016
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
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.
On Thu, Jul 7, 2016 at 7:32 PM, Wolfgang Schuster <
schuster.wolfgang at gmail.com> wrote:
> Mohammad Hossein Bateni <bateni at gmail.com>
> 7. Juli 2016 um 16:31
> Thanks, Wolfgang!
> BTW why doesn't the following work? it gives the 'missing number' error.
> % \mainlanguage[en]
> 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.
> If your question is of interest to others as well, please add an entry to
> the Wiki!
> maillist : ntg-context at ntg.nl /
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ntg-context