Am 04.10.2013 16:47, schrieb Peter Rolf:
Am 04.10.2013 16:15, schrieb Hans Hagen:
On 10/4/2013 2:52 PM, Peter Rolf wrote:
Hi,
I played around with the new passvariable() option and ran into errors when passing a path. Used the latest beta (01.10.2013). Can someone confirm this?
in mp-mlib.mpiv:
vardef mfun_path_to_string(expr p) = mfun_point_to_string(p,1) for i=2 upto length(p) : & " " & mfun_point_to_string(p,i) endfor enddef ;
vardef mfun_boolean_to_string(expr b) = if b : "true" else : "false" fi enddef ;
(i forgot to rename the argument when outlining the code)
fwiw: in your case you still get an (empty) graphic, use \startMPcalculation ... when you don't want that
Many thanks! Good to know, but in this case I just need the path.
:-D now I know what you mean...
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________