[NTG-context] Problem calling system
Procházka Lukáš Ing. - Pontex s. r. o.
LPr at pontex.cz
Mon May 14 12:23:46 CEST 2012
> \ctxlua{os.execute(lua -e "require 'lfs'")}
... Gives:
"
...
fonts > latin modern fonts are not preloaded
languages > language en is active
! LuaTeX error <main ctx instance>:1: attempt to call global 'e' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 4 in file C:/Lukas/ConTeXt/TestDDv/t1.mkiv: LuaTeX error ...
1 %\write18{lua -e "require 'lfs'"}
2 %
3
4 >> \ctxlua{os.execute(lua -e "require 'lfs'")}
5 %\ctxlua{os.execute([[lua -e "require 'lfs'"]])}
6
7 \starttext
8 A
9 \stoptext
10
l.4 \ctxlua{os.execute(lua -e "require 'lfs'")}
...
"
If I try:
\ctxlua{os.execute([[lua -e "require 'lfs'"]])}
I get error:
"
...
languages > language en is active
lua: (command line):1: '=' expected near 'lfs'
{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
...
"
(Like if "'" were gobbled...)
>
> btw, if you run texlua you get lfs for free.
OK, this is just a sample. I need to use another file, in fact.
Lukas
--
Ing. Lukáš Procházka [mailto:LPr at pontex.cz]
Pontex s. r. o. [mailto:pontex at pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.mkiv
Type: application/octet-stream
Size: 194 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120514/4c5f609d/attachment.obj>
More information about the ntg-context
mailing list