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 commands.  You 
> can read more about how it works in 
> http://www.pragma-ade.nl/general/manuals/cld-mkiv.pdf

Many thanks for your reply, Henri.

I remember paging through the manual, it’s included in the distribution.

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.stopxcell()
         context.startxcell()
          context("Note 2")
         context.stopxcell()
        context.stopxrow()
        context.startxrow()
         context.startxcell()
          context("Note 3")
         context.stopxcell()
         context.startxcell()
          context("Note 4")
         context.stopxcell()
        context.stopxrow()
    context.stopxtable()
    \stoplua
    \stoptext

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to