[NTG-context] xtables with lua

Fabrice Couvreur fabrice1.couvreur at gmail.com
Sun Sep 30 11:11:35 CEST 2018


Hi,
Is it possible to fill columns A, B and C using a loop with lua ?
Thank you.
Fabrice

\starttext
  \startxtable[align={lohi,middle},bodyfont=8pt,width=0.8cm]
       \startxrow
         \startxcell

         \stopxcell
         \startxcell
           A
         \stopxcell
         \startxcell
           B
         \stopxcell
         \startxcell
           C
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           1
         \stopxcell
         \startxcell
           \m{x}
         \stopxcell
         \startxcell
           \m{N}
         \stopxcell
         \startxcell
           \m{B}
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           2
         \stopxcell
         \startxcell
           1
         \stopxcell
         \startxcell
           7
         \stopxcell
         \startxcell
           20
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           3
         \stopxcell
         \startxcell
           2
         \stopxcell
         \startxcell
           14
         \stopxcell
         \startxcell
           24
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           4
         \stopxcell
         \startxcell
           3
         \stopxcell
         \startxcell
           21
         \stopxcell
         \startxcell
           28
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           5
         \stopxcell
         \startxcell
           4
         \stopxcell
         \startxcell
           28
         \stopxcell
         \startxcell
           32
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           6
         \stopxcell
         \startxcell
           5
         \stopxcell
         \startxcell
           35
         \stopxcell
         \startxcell
           36
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           7
         \stopxcell
         \startxcell
           6
         \stopxcell
         \startxcell
           42
         \stopxcell
         \startxcell
           40
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           8
         \stopxcell
         \startxcell
           7
         \stopxcell
         \startxcell
           49
         \stopxcell
         \startxcell
           44
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           9
         \stopxcell
         \startxcell
           8
         \stopxcell
         \startxcell
           56
         \stopxcell
         \startxcell
           48
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           10
         \stopxcell
         \startxcell
           9
         \stopxcell
         \startxcell
           63
         \stopxcell
         \startxcell
           52
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           11
         \stopxcell
         \startxcell
           10
         \stopxcell
         \startxcell
           70
         \stopxcell
         \startxcell
           56
         \stopxcell
       \stopxrow
       \startxrow
         \startxcell
           12
         \stopxcell
         \startxcell
           11
         \stopxcell
         \startxcell
           77
         \stopxcell
         \startxcell
           60
         \stopxcell
       \stopxrow
     \stopxtable
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180930/b68227ec/attachment-0001.html>


More information about the ntg-context mailing list