[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pic rejects nested expr<posn,posn>
From: |
Werner LEMBERG |
Subject: |
Re: pic rejects nested expr<posn,posn> |
Date: |
Fri, 29 May 2009 12:48:32 +0200 (CEST) |
> pic 1.20.1 likes centroid1, but reports a syntax error on expanding
> centroid2. Both should be OK according to the syntax given in
> pic.ps that comes with the distribution.
>
> .PS
> define centroid1 { (2/3)<$3,(1/2)<$1,$2>> }
> define centroid2 { (1/3)<(1/2)<$1,$2>,$3> }
> A: "A" at 0,0
> B: "B" at 1,0
> C: "C" at 0,1
> "+" at centroid1(A,B,C)
> "+" at centroid2(A,B,C)
> .PE
This is fixed now in the CVS. Please test. Note that DWB pic doesn't
like centroid2 either. dpic, however, does accept it (but ironically
fails on centroid1).
Werner