2010/12/5 Aditya Mahajan :
> On Sun, 5 Dec 2010, Li Yanrui (李延瑞) wrote:
>
> When a label (or btex ... etex) is present, ConTeXt processes the MP code
> twice: once to typeset the labels and then to place to labels. You get a
> redundant equation in the second pass.
>
> The easiest way to prevent th
2010/12/5 Alan BRASLAU :
> Hello,
>
> You should change all of the "=" to ":=", as in
> u := 1cm;
>
> This instructs metapost to assign a value to the variable;
> the standard form "u = 1cm" is a formula for metapost to solve.
> It tries then to resolve u = 1cm; xmin = -2.6u; and xmax = 4u;
> as a
Hello,
You should change all of the "=" to ":=", as in
u := 1cm;
This instructs metapost to assign a value to the variable;
the standard form "u = 1cm" is a formula for metapost to solve.
It tries then to resolve u = 1cm; xmin = -2.6u; and xmax = 4u;
as a coupled set of equations. Sometimes you c
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.
>
>;
> <*> u = 1cm;
> xmin = -2.6u; xmax = 4u; d
On Sun, 5 Dec 2010, Li Yanrui (李延瑞) wrote:
Hi,
See the following example:
\starttext
\startMPcode
u = 1cm;
xmin = -2.6u;
xmax = 4u;
drawarrow (xmin,0)--(xmax,0);
\stopMPcode
\stoptext
It can be compiled rightly. But when I add the 'label' line into it, see:
\starttext
\startMPcode
u = 1cm;
x
On 12/05/2010 04:14 AM, Li Yanrui (李延瑞) wrote:
Is this a bug or it always need to use 'save' macro to hold these
local variable in metafun?
It is a side-effect of MkIV running your code through metapost
multiple times. But why it does that, I am not sure.
Best wishes,
Taco
___
Hi,
See the following example:
\starttext
\startMPcode
u = 1cm;
xmin = -2.6u;
xmax = 4u;
drawarrow (xmin,0)--(xmax,0);
\stopMPcode
\stoptext
It can be compiled rightly. But when I add the 'label' line into it, see:
\starttext
\startMPcode
u = 1cm;
xmin = -2.6u;
xmax = 4u;
drawarrow (xmin,0)--(x