Re: [NTG-context] passing dimensions to metapost

2008-08-28 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi all, cleaning up the code in my module, I run into a very interesting problem. I want to pass a user-defined value to Metapost. Until now, the value scale had to be numeric, and I used it like this: draw fullcircle scaled \MPvar{scale}mm and Metapost was

Re: [NTG-context] passing dimensions to metapost

2008-08-28 Thread Thomas A. Schmitz
On Aug 28, 2008, at 9:45 AM, Hans Hagen wrote: Hans, thanks a lot for your reply. Amazing - the lua code is so simple that even I can understand it! I'm certain to use it later; for the time being, I want to remain compatible for mkii and XeTeX as well. \startluacode document.mymodule =

[NTG-context] passing dimensions to metapost

2008-08-27 Thread Thomas A. Schmitz
Hi all, cleaning up the code in my module, I run into a very interesting problem. I want to pass a user-defined value to Metapost. Until now, the value scale had to be numeric, and I used it like this: draw fullcircle scaled \MPvar{scale}mm and Metapost was happy, and I was too. Now Aditya