Hi Olivier and Hans, Olivier wrote: > > Thanks a lot for these. With these hints I am now able to compile > metapost figs from conTeXt through "texexec --luatex" normaly. > To this end, I had to perform two tweaks: > > * the files mlib-run.lua, mlib-ctx.lua, and mlib-pdf.lua were *NEVER* > loaded so I added to my conTeXt source file: > \directlua0 { dofile > ("/usr/share/texmf/tex/context/base/mlib-ctx.lua") } > \directlua0 { dofile > ("/usr/share/texmf/tex/context/base/mlib-run.lua") } > \directlua0 { dofile > ("/usr/share/texmf/tex/context/base/mlib-pdf.lua") }
Wouldn't that mean that $ luatools mlib-pdf.lua also fails to find the files? luatools --generate should be able to fix that. > * the format was generated correctly but loaded incorrectly: > I had to add the following line: > ini_version = false, > in the metapost.load function in the mlib-run.lua file. > > Now everything is OK. The second thing (an misfortunate typo) is easy > to fix. This should be fixable by simply updating your context, because that is already fixed in newer contexts. But this could well be the cause of Hans' problems. Best wishes, Taco ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________