[NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)
alan.braslau at cea.fr
Thu Sep 1 23:24:11 CEST 2016
No, this is a feature, not a bug!
According to the original graph macros, the data files are kept open, and thus subsequent reads will pick up successive data sets in a single file. This is explicitly stated in the documentation.
A consequence for us in ConTeXt mkiv, where the metapost code is called in multiple passes, is that one must explicitly close the data file if one does not want this feature. This, too, I documented. So don't break John Hobby's code by removing the saved.
> On Sep 1, 2016, at 04:28, Hans Hagen <pragma at wxs.nl> wrote:
> On 9/1/2016 11:43 AM, Taco Hoekwater wrote:
>> I am on El Capitan as well (10.11.6).
>> ConTeXt ver: 2016.08.29 22:53 MKIV beta
>> Attached is an altered input file that works for me. No idea how much of the problem
>> is actually related to El Capitan, but:
>> * \usemodule[graph] defines a special MP instance called ‘graph’. You need to
>> use that because otherwise the metapost graph macros will not load (that is why
>> I added the “graph::” prefix twice)
>> * Something is wrong with the file closing, so I added an extra definition for
>> 'graph_close_file' (no idea why it does not work out of the box. Sorry to you and Hans).
> there are save's in mp-grap ... i'll remove them
More information about the ntg-context