On 16-2-2011 11:44, Philipp Gesang wrote:
Hi all,

I noticed that although mtxrun preloads some of the context libs
that doesn’t cover everything available during an ordinary mkiv
run.  What would be the canonical way to load additional libs
like “luat-ini”&c. on demand? “environment.loadluafile()”? Can
this be configured globally? Is it wise to mess with “own.libs”
in mtxrun?

Example: This snippet checks the global env for some tables.
“mtxrun --script” doesn’t find any while some of them are there
when processed as cld.

something

dofile(resolvers.findfile("yourfile.lua"))

but keep in mind that most of the mkiv code depends on other code and often they depend on functionality that is only available when we're in luatex mode and not in texlua mode

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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