Re: [NTG-context] question about MP drawing with dir

2018-05-25 Thread Pablo Rodriguez
On 05/24/2018 10:23 PM, Alan Braslau wrote:
> On Thu, 24 May 2018 21:01:59 +0200
> Pablo Rodriguez  wrote:
> 
>> dir seems magic to me. I don’t understand how it works, not even how
>> it can be used for drawing not having an origin.
> 
> All MP drawings have an origin (0,0).

I thought origin had to be explicitly set.

> (dir angle) returns a pair on a unit circle surrounding the origin, i.e.
> (cosd angle,sind angle) where cosd is the cosine function operating on
> an angle in degrees.

Well, I need to refresh my math from high school (centuries ago :-)) to
remember what cosine and sine are.

Many thanks for your explanation,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] question about MP drawing with dir

2018-05-25 Thread Pablo Rodriguez
On 05/24/2018 09:33 PM, Hans Hagen wrote:
> [...] 
> reusing a picture is more efficient
> 
> \startMPpage
>  draw fullcircle scaled (.06TextWidth - .05LineHeight);
>  picture t ; t := textext("\cldcontext{utf.char(0xEB09)}") ;
>  for m=1 step 2 until 10 :
>  path s ; s := (dir30--dir150--dir315--dir90--dir225--cycle) 
> scaled m;
>  n := (m * 50) ;
>  o := (m / 5) ;
>  for i=0 upto n :
>draw t scaled (o * .025) shifted point (i/n*length s) of s ;
>  endfor
>  endfor
> \stopMPpage

Many thanks for the improvement, Hans.

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] index x-ref problem

2018-05-25 Thread Alan Bowen
This is fixed in the latest beta. Thanks, Hans!

Alan

On Sat, May 19, 2018 at 8:05 AM Alan Bowen  wrote:

> IF I am doing this correctly, then, there seems to be problems in the
> current standalone​ when there are two x-refs to a single heading. The
> space after “and” is missing and should the order of the refs not be
> alphabetical?
>
> MWE
>
> \starttext
> \seeindex{animal}{cat}
> \seeindex{animal}{quadruped}
>
> %\seeindex{animal}{whiskers}
>
> The \index{cat}cat has \index{whiskers} whiskers.
> \blank[3*big]
> \placeindex
> \stoptext
>
> Uncomment the \seeindex{animal}{whiskers} and it gets even messier.
>
> Alan
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___