![](https://secure.gravatar.com/avatar/60f3cc97f94fa3690ba406f8c1a7fc4f.jpg?s=120&d=mm&r=g)
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.date{ d = t.day, m = t.month, y = t.year } }}
Many thanks for your reply, Henri.
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 commands. You can read more about how it works in http://www.pragma-ade.nl/general/manuals/cld-mkiv.pdf Here a little sample with an xtable: \starttext \startluacode local function duedate() local t = os.date('*t', os.time()+ 10 * 24 * 3600) context.date{ d = t.day, m = t.month, y = t.year } end context.startxtable{frame = "off"} context.NC() context("Note") context.NC() context("Date") context.NR() context.NC() context("Hand in before") context.NC() duedate() context.NR() context.stopxtable() \stopluacode \stoptext
Many thanks for your help,
Pablo