[NTG-context] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi all, I have a document in which I must draw several triangles for which two summits, say z0, z1, and the length of the two other sides are known, so that the third summit, say z2, is completly determined. In order to draw one triangle the following works fine: \setupcolors[state=start]

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi Stefan, Thanks for the quick answer and solution! Your solution works perfectly in mkiv; however typesetting with mkii results in ! Undefined control sequence. l.3 \startMPdefinitions Is there a solution with mkii? May I ask one more question? In the macro you wrote

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Stefan Müller
On 24.03.2011 10:57, Otared Kavian wrote: Hi Stefan, Thanks for the quick answer and solution! Your solution works perfectly in mkiv; however typesetting with mkii results in ! Undefined control sequence. l.3 \startMPdefinitions Is there a solution with mkii? Then just drop

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi Stefan, Thanks for your explanations: everything works as expected and your solution is very instructive for me. Later this weekend I'll put it on the wiki. Have a nice day. Best regards: OK On 24 mars 2011, at 11:29, Stefan Müller wrote: On 24.03.2011 10:57, Otared Kavian wrote: Hi

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Stefan Müller wrote: On 24.03.2011 10:57, Otared Kavian wrote: Hi Stefan, Thanks for the quick answer and solution! Your solution works perfectly in mkiv; however typesetting with mkii results in ! Undefined control sequence. l.3 \startMPdefinitions Is