Problem with Lua: context.component()
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: " ... system > jobfiles > unknown tex file '{t2.mkiv}\stoptext \finishjob ' <<<<<<<<<<<<< ???????????? close source > level 1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' tex error > tex error on line 0 in file : ! Emergency stop <*> cont-yes.mkiv <empty file> *** (job aborted, no legal \end found) " So - how to use 'context.component()' (input a component within Lua) well? Thank you in advance. Best regards, Lukas -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Procházka Lukáš Ing.