[NTG-context] Lua code and table

Jano Kula jano.kula at gmail.com
Thu Feb 18 16:26:25 CET 2021


Hello Fabrice,



On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur <fabrice1.couvreur at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210218/cf21eff5/attachment-0001.htm>


More information about the ntg-context mailing list