[luatex] [metapost] Using the mplib inside luatex

Taco Hoekwater taco at elvenkind.com
Mon Jan 5 17:13:55 CET 2009



Elie Roux wrote:
> Taco Hoekwater a écrit :
>> Elie Roux wrote:
>>  
>>> I have different errors. Here is a zip with the errors I have and my
>>> mplib.lua. My errors may be more understandable by someone who know
>>> metapost better than I do...
>>>     
>>
>> Your current version:
>>
>>   function metapost.load(name)
>>       local mpx = mplib.new {
>>             ini_version = true,
>>
>> My original version:
>>
>>   function metapost.load(name)
>>       local mpx = mplib.new {
>>             ini_version = false,
>>
>> This may not be the only problem, but it certainly is one problem.
> 
> Actually it was somthing I changed to get rid of the error
> 
> mplib: mp error: mem file not found
> 
> that I wasn't able to fix... even with all the plain.mem, plain.mp, etc.
> everywhere, I can't get rid of it... (This error must be the true one).
> 
> A plain.mem generated by mpost -ini '\input plain dump' is ok to use in
> this case?

Should do, yes. Or you could use one created by metapost.make().
For example, you could (temporarily) add

   \directlua0 { metapost.make('plain') }

at the top of your document (Akira emailed me something similar).

Best wishes,
Taco



More information about the luatex mailing list