\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:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

Attachment: t1.mkiv
Description: Binary data

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to