Re: [NTG-context] date calculated with currentdate plus n days

2018-08-14 Thread Pablo Rodriguez
On 08/14/2018 09:24 AM, Henri Menke wrote: > On 14/08/18 17:29, Pablo Rodriguez wrote: >> [...] >> Where are those context.* Lua commands documented? >> >> I want to generate an xtable using Lua code, but I don’t know where to read. > > They aren't documented because they are just the context

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-14 Thread Henri Menke
On 14/08/18 17:29, Pablo Rodriguez wrote: On 08/14/2018 01:46 AM, Henri Menke wrote: On top of that I recommend to use context.date to get the correct formatting according to the current language options: \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 * 24 * 3600)

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Pablo Rodriguez
On 08/14/2018 01:46 AM, Henri Menke wrote: > On top of that I recommend to use context.date to get the correct > formatting according to the current language options: > > \def\duedate{\ctxlua{ >local t = os.date('*t', os.time()+ 10 * 24 * 3600) >context.date{ d = t.day, m = t.month, y =

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Henri Menke
On top of that I recommend to use context.date to get the correct formatting according to the current language options: \starttext \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 * 24 * 3600) context.date{ d = t.day, m = t.month, y = t.year } }} \duedate \stoptext On

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Jan U. Hasecke
On 13.08.2018 17:57, Pablo Rodriguez wrote: > if you don’t mind using Lua, here you have it: > > \starttext > \def\duedate{\cldcontext{os.date('\letterpercent d/\letterpercent > m/\letterpercent Y', os.time()+ 10 * 24 * 3600)}} > > \duedate > \stoptext > > Just in case

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Pablo Rodriguez
On 08/13/2018 05:19 PM, Jan U. Hasecke wrote: > Hi all, > > I want to insert a due date for payments in my invoice and I would like > to calculate it from \currentdate. Something like > > define \duedate = \currentdate plus 10 days > > Is this possible? Hi Jan-Ulrich, if you don’t mind using

[NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Jan U. Hasecke
Hi all, I want to insert a due date for payments in my invoice and I would like to calculate it from \currentdate. Something like define \duedate = \currentdate plus 10 days Is this possible? juh ___ If your