19 Mar
2017
19 Mar
'17
6:01 p.m.
On Tue, 20 Dec 2016, Alan Braslau wrote:
On Mon, 19 Dec 2016 08:19:25 -0800 Aditya Mahajan
wrote: The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (search for MPvar).
Hans has developed tools making it quite easy to pass data back and forth between MetaPost and lua. This is quite efficient, and it is being used more and more in the development of macro functionality.
I finally need to write a macro where I want to pass data from lua to metapost. I could not find an example in the source code showing this. Can someone show a basic example of how lua-metapost interface works or point me to the appropriate files in the source. Thanks, Aditya