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

Procházka Lukáš Ing. LPr at pontex.cz
Fri Feb 23 15:26:54 CET 2018


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 at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.log
Type: application/octet-stream
Size: 1458 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180223/0b360ee8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.mkiv
Type: application/octet-stream
Size: 161 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180223/0b360ee8/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t2.mkiv
Type: application/octet-stream
Size: 43 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180223/0b360ee8/attachment-0002.obj>


More information about the ntg-context mailing list