5 Dec
2010
5 Dec
'10
9:06 a.m.
Li Yanrui (李延瑞) wrote:
Hi,
Now it can not be compiled and luatex outputs:
mplib : loading 'metafun.mp' (experimental metapost version two) mplib > mp terminal: ! Redundant equation. <to be read again> ; <*> u = 1cm; xmin = -2.6u; xmax = 4u; drawarrow (xmin,0)--(xmax,0); label.lf...
! Redundant equation. <to be read again>
Is this a bug or it always need to use 'save' macro to hold these local variable in metafun? ConTeXt compiles all metapost code in one long run, so you have to re- declare 'u' to avoid this error (e.g. 'save' or 'numeric u;').