[NTG-context] Use of context in lua (was: date calculated with currentdate plus n days)

2018-08-14 Thread Jan U. Hasecke
On 14.08.2018 16:58, Pablo Rodriguez wrote: > I rewrote your sample as (xtables are the only tables I know in ConTeXt): > > \starttext > \startlua > context.startxtable() > context.startxrow() > context.startxcell() > context("Note 1") > context.stop

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 comm

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) context

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 = t

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 14/08/18

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 i

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,

[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

[NTG-context] Bug in currentdate

2011-10-14 Thread Otared Kavian
go. > > Hans Hi Hans, Thanks for the new beta. I wanted just to report that \currentdate has still a bug in French: in French it gives day+ octobre 2011 Minimal example follows. Best regards: OK \starttext English: \currentdate French: \mainlangu

Re: [NTG-context] \currentdate and language deo

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi all, something doesn't work with language deo in the latest current. Testfile: \mainlanguage[deo] \starttext test: \currentdate \stoptext Switching language to de makes the file compile.

[NTG-context] \currentdate and language deo

2009-08-07 Thread Thomas A . Schmitz
Hi all, something doesn't work with language deo in the latest current. Testfile: \mainlanguage[deo] \starttext test: \currentdate \stoptext Switching language to de makes the file compile. All best T

Re: [NTG-context] t-bib - publicationlist space between [111] and items // luatex // error for \currentdate [y, -, mm, -, dd]

2007-08-17 Thread Peter Münster
do to get MKIV running on TL-2007 (or better: TL-trunk) > Since the update of cont-tmf.zip, I get an error (pdfetex) for: > > \currentdate [y,-,mm,-,dd] > \bye > > ! Missing number, treated as zero. Confirmation: her

Re: [NTG-context] t-bib - publicationlist space between [111] and items // luatex // error for \currentdate [y, -, mm, -, dd]

2007-08-17 Thread Taco Hoekwater
Tobias Burnus wrote: > Hello, > > I use \setuppublications[numbering=yes,refcommand=num] and have more > than 99 references. Thus in the reference list the "]" of "[111]" > overlaps with the entry behind. > > I tried \setuppublicationlist with samplesize= and with > distance=/width=, but this did

[NTG-context] t-bib - publicationlist space between [111] and items // luatex // error for \currentdate [y, -, mm, -, dd]

2007-08-17 Thread Tobias Burnus
to be the same error as in (a). * * * Since the update of cont-tmf.zip, I get an error (pdfetex) for: \currentdate [y,-,mm,-,dd] \bye ! Missing number, treated as zero. { \convertnumber ... \s!default \fi \fi \endcsname {