Hello Jano,
Thanks.
Fabrice

Le jeu. 18 févr. 2021 à 16:27, Jano Kula <jano.kula@gmail.com> a écrit :
Hello Fabrice,



On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
Hi all, Thanks to you, I'm not at your level with Lua, but I'm learning thanks to you
Hans, I compiled your code and I get an error message :

lua error       > lua error on line 50 in file ./table_1.tex:

token call, syntax: [ctxlua]:11: unexpected symbol near '='

13     \startluacode
14          function document.MyTable(specification)
15    
16              local pattern    = specification.pattern
17              local action     = specification.action
18              local conversion = specification.conversion or "Characters"
19    
20              local n = #pattern
21    
22          --  context.startxtable { align = "middle,lohi", width = "0.8cm",
23 >>  offset = "0.8ex", bodyfont = "9pt", framecolor = "cyan" }

Just comment out line 23, too, or join 22 + 23 to one line. 

Jano 


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________