[NTG-context] MetaPost + format(%g,n)

2010-03-07 Thread Troy Henderson
This code compiles fine with plain MetaPost. input graph; beginfig(0); draw begingraph(1in,1in); setrange((0,0),(1,1)); for n=auto.x: show format(%g,n); endfor; endgraph; endfig; end However, this ConTeXt translated version errors in MKIV \usemodule[graph]

Re: [NTG-context] MetaPost + format(%g,n)

2010-03-07 Thread Troy Henderson
For the record, I'm not actually trying to show the picture that is returned by the format() function, but instead I want to assign the value of this picture to a variable, and it is erroring with that as well. Troy

Re: [NTG-context] MetaPost + format(%g,n)

2010-03-07 Thread Troy Henderson
Sorry for the flood. After some digging around it seems like the % should now be replaced by @. That is, I should use format(@g,n) Troy ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] MetaPost + format(%g,n)

2010-03-07 Thread Troy Henderson
Is the sarith package usable in MKIV? For example, I would like to get the numerical (not string) values of auto.x and auto.y from the graph package. I expect the following example to work, but it does not (even if I input sarith) with MPinclusions. \usemodule[graph]