Hey André, ···<date: 2012-12-12, Wednesday>···<from: Andre Caldas>···
> If I load a lua file from a module using > \registerctxluafile{file}{1.001} > or > \ctxloadluafile{file} > How can I be sure the file was in fact loaded? The related tracker output is quite comprehensive: \enabletrackers[resolvers.locating] \ctxloadluafile{sometest} it does not make Context terminate on fail, though. > Can I make ConTeXt halt > and issue an error in this case? the macros you cite don’t offer this behavior but you can easily write a wrapper for the file loader: % macros=mkvi \def\strictload[#fname]{% \directlua{ local success = environment.loadluafile[[#fname]] if not success then print[[unrecoverable error: could not load file #fname]] os.exit(1) end }% } \starttext \strictload[unknown] \stoptext Hth Philipp > Cheers, > André Caldas. > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
pgp2Xhri5F1J3.pgp
Description: PGP signature
___________________________________________________________________________________ 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 ___________________________________________________________________________________