[NTG-context] Problem with Lua: context.component()

Hans Hagen pragma at wxs.nl
Fri Feb 23 20:47:45 CET 2018


On 2/23/2018 3:26 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> suppose having:
> 
> ---- t1.mkiv
> \starttext
>    a
> 
>    \startluacode
>      context.setvalue("b", "bbb")
>      context.setvalue("c", 2)
>      context.component("t2.mkiv")
>    \stopluacode
> \stoptext
> ----
> 
> and
> 
> ---- t2.mkiv
> \startcomponent *
>    \b\c
> \stopcomponent
> ----
> 
> I get no result when trying to compile t1.mkiv - log tells:
context.component(false,"foo")


context.component { "foo" }

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list