bug-groff
[Top][All Lists]
Advanced

[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: Thu, 28 May 2009 16:00:50 +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

Yes, it's a bug; I'll look into it.  Note, however, that you can say

  define centroid2 { (1/3)<((1/2)<$1, $2>), $3> }

to make it work.


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]