On Monday 08 March 2010 09:18:38 Wolfgang Schuster wrote:
\startMPinclusions[+] input sarith; \stopMPinclusions
This probably explains other problems that I had experienced concerning \startMPinclusions\stopMPinclusions... Indeed, as metapost is processed in one run under mkIV, I had gotten around such problems by simply putting certain metapost definitions in an early instance of \startMPcode\stopMPcode. Perhaps the [+] option could/should be by default for MPinclusions with some other option syntax allowing one to reinitialize the MPinclusions. Or maybe not... In any case, we need to document this more clearly. Concerning the graph package: 1) Should it use \startMPinclusions[+] so as not to erase other MPinclusions? 2) Is there a penalty/overhead in including sarith by default in the graph package? 3) Will metapost be able to better handle arithmetic soon, and/or can someone suggest a better way of using lua along with metapost graph? (Currently I externally use "awk" via \immediate\write18 to manipulate data.) Alan