[metapost] nonstopmode interaction

Taco Hoekwater taco at elvenkind.com
Thu Oct 13 17:55:55 CEST 2011

On 10/13/2011 05:49 PM, Taco Hoekwater wrote:
> On 10/13/2011 04:28 PM, Troy Henderson wrote:
>> No. All labels are collected into a single TeX input file that is
>> then processed, and the return value of that run is used to decide
>> the validity of all labels.
>> Are there any hacks/workarounds (even sacrificing efficiency) that would
>> allow me to process these labels separately?
> Sorry, no. Makempx errors are fatal in all versions of metapost up 'til
> now.

I just realised that it is not quite true that there is no possible hack 
to work around this; there is. It is just rather sneaky.

All that mpost knows is that it runs the command held in the $TEX 
environment variable (typically that is 'etex') on an input file, and it 
expects to find a DVI file after that call returns.

$TEX being just an environment variable, it could point a user-supplied 
script that runs whatever TeX engine you want, plugs in a default DVI if 
the actual tex chokes for some reasonb, and always returns succesfully.

Best wishes,

More information about the metapost mailing list