groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] chop in pic?


From: Werner LEMBERG
Subject: Re: [Groff] chop in pic?
Date: Fri, 05 Oct 2001 09:08:39 +0200 (CEST)

> > I could generalize pic's syntax of compass points with something
> > like:
> >
> >   deg = atan2(0, -1) / 180 ;
> >   move to last ellipse .angle deg * 217 ;
> >
> > This would specify a point on the ellipse with an angle of 217
> > degrees (in the mathematical sense, i.e. counter-clockwise from
> > the right).
>
> Not bad.  Do any of the other .pos notations take a parameter?

No, but I don't think that this causes problems.  Before making the
suggestion I've actually checked pic's source code :-)

> If not, perhaps a function would be better.
>
>     ellipseperim(E.c, E.w, E.h, theta)
>
> returning a point.

Hmm, my suggested generic `compass point' should work with any object;
it wouldn't be restricted to ellipses.

> I'm not sure.  Also, there will always be other things that wouldn't
> be handled like the intersection of two lines, or an arc and a line,
> etc.  Perhaps it's best to leave the simple case to chop and provide
> examples showing that the others are up to the author.

Well, implementing Metafont's or Metapost's `intersectionpoint'
keyword is probably too much work...

BTW, I've almost finished support for Metapost in groff.  This means
that users who aren't satisfied with pic can always use the `greater
brother' Metapost.  More to be announced soon on this list.


    Werner

reply via email to

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