[NTG-context] Code that run in Metapost but not in starMPcode enviroment

Hans Hagen pragma at wxs.nl
Mon Feb 2 00:54:07 CET 2015


On 2/1/2015 3:31 PM, Akira Kakuto wrote:
>> Interestingly it seems to work in mkii, probably because
>> mkii calls external metafun:
>
> Sorry,  I didn't notice explanation by Hans.

The problem with variables in metapost is that they are global by 
default (unless 'save'd in a group or vardef). This means that one can 
best explicitly declare variables that are used. Of course one can also 
use a dedicated instance.

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
-----------------------------------------------------------------


More information about the ntg-context mailing list