Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-03 Thread Taco Hoekwater
Hi, > On 3 Jan 2019, at 11:31, Fabrice Couvreur wrote: > > Hi, > It is true that Alan has already answered this question but I was misled > because the file that I compiled without problem is this one, even leaving > pair z[ ] (I can think that it is because of this instruction z := point

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-03 Thread Fabrice Couvreur
Hi, It is true that Alan has already answered this question but I was misled because the file that I compiled without problem is this one, even leaving pair z[ ] (I can think that it is because of this instruction z := point 3.6 of p ;) \starttext \startMPpage[offset=2pt] path p, q, r, b ;

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Alan Braslau
On Thu, 3 Jan 2019 16:22:06 +1300 (UTC) Henri Menke wrote: > z is a MetaPost intrinsic, something along the lines of > > vardef z@#=(x@#,y@#) enddef; > > so you can't use the same name for a pair. Actually you can simply > delete the declaration > >pair z[]; I had already told

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Henri Menke
z is a MetaPost intrinsic, something along the lines of vardef z@#=(x@#,y@#) enddef; so you can't use the same name for a pair. Actually you can simply delete the declaration pair z[]; from your file and it will work as intended. If you insist on using your own declaration of z, then

[NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Fabrice Couvreur
Hi, I have a problem compiling this file. Thanks. Fabrice ## test file \starttext \setupbodyfont [pagella,9pt] \startMPpage[offset=2pt] path p, q, r, b ; pair z[]; p := unitsquare xyscaled (9cm,5cm) ; z[0] = (2cm,0cm) ; z[1] =