From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104759 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Some macros (Metafun) Date: Mon, 12 Aug 2019 00:40:39 +0200 Message-ID: References: <71c89b77-d2b0-6239-0940-bce3be0e2470@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6823439835336913260==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="39744"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 12 00:44:49 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hwwa0-000ADJ-P5 for gctc-ntg-context-518@m.gmane.org; Mon, 12 Aug 2019 00:44:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9660A153427; Mon, 12 Aug 2019 00:44:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xmbrd7GuyKkJ; Mon, 12 Aug 2019 00:44:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B71F5153428; Mon, 12 Aug 2019 00:44:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CB276153242 for ; Mon, 12 Aug 2019 00:44:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vUlZFbEftsIT for ; Mon, 12 Aug 2019 00:44:16 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.46; helo=mail-wm1-f46.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BCC23153227 for ; Mon, 12 Aug 2019 00:44:16 +0200 (CEST) Original-Received: by mail-wm1-f46.google.com with SMTP id 207so10523589wma.1 for ; Sun, 11 Aug 2019 15:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=xUWBx1CQCnDx8RrB19IOe7v3GZpjHwSrMg802IJK6UQ=; b=CeJeGu40brTGS8jYyLRpYaOUdZwBmAYifp82fwHAynC13LXvjj0FcA5Nj91ZTJMWkd 8/vZRLjx1LjBxYHTsjoQQp31M/G/7eg57TA4sT50NmgygrapWAXWMkEmSdUcCJrGmFJx GAQzyoiQCg8ydU6gcjUAfQnM/0B2OwYy9jeCIsoPsuFYJQFQJG0v6vpXh9+84gVx2Aty nr74sbRRtU+Nui6UxWikgIWIvWQnem74PxYBXJNhwQnWtTLpMVesja8VXw4+ZGDlhkSA fPJy07m9swAE/gdFpdb07gm8MbhD5b21aARRWuW5y2xKX40ZZrCLQX5LOeu+WHykgdDY fEgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=xUWBx1CQCnDx8RrB19IOe7v3GZpjHwSrMg802IJK6UQ=; b=A4XoPCult/I2mcVYvfANd623SwfL7hxeI+3+oQA3hoExiOfx/+ohis2LZfbRm8kFM8 BCvY/xDd+iP8spr4867F8g7J9YvM5y2vRVpqNWg6LpMM/cBJXrdJr+cIsc+Ew4tQk+EX 5WW1aiBRgjqI9W5093yRm/shV/mEAdXzluTqZACa6MkO6K8Zq4/B+4MYMrGBOPnu2zdY nb7dDiSiORbu1bvI4l36ImJz/Igr4mbvE6dGXWBDAGmV7z2dpJEGPhfC39ETKtg4qnXa qc5ByOOoRZ/IlrhqLf/UvZvNVybpMbf0YfeROnF4/9O5Ll9KnHGTJZ3fwTaTKhdbUKyb 1X/A== X-Gm-Message-State: APjAAAWQTKFuU/XJ8LFS/fT6u2X7fg2jY4VdSbj2TdIjm/lEYHAjt7J5 DVFz88H8a+aQrhRb9IwH/+fteUXuaAUakogRMu1XTwUf X-Google-Smtp-Source: APXvYqw32VisgnPWx1M9buRUIn/pmqX35NkPnWof0QZO054Rn4yFl0E8wbKNaFEkVwXxM1f9yM54fS4smABdkceG4BY= X-Received: by 2002:a7b:cb08:: with SMTP id u8mr23887109wmj.167.1565563455987; Sun, 11 Aug 2019 15:44:15 -0700 (PDT) In-Reply-To: <71c89b77-d2b0-6239-0940-bce3be0e2470@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:104759 Archived-At: --===============6823439835336913260== Content-Type: multipart/alternative; boundary="000000000000aae411058fdf251e" --000000000000aae411058fdf251e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Hans, Sorry but I did not see your email. What is the default color used to draw the path p ? Thank you. Le ven. 9 ao=C3=BBt 2019 =C3=A0 13:12, Hans Hagen a =C3= =A9crit : > On 8/9/2019 10:57 AM, Fabrice Couvreur wrote: > > Hello, > > In the Metafun manual, Hans uses macros like drawpath p ; > > drawcontrollines p ; drawpoints p ; drawcontrolpoints p ... > > How to use them in a document ? > > Where to find source codes ? > > For example, the following code does not work : > > > > \starttext > > \startuseMPgraphic{path} > > path p ; p :=3D (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ; > > \stopuseMPgraphic > > > > \startMPcode > > p :=3D p .. cycle ; swappointlabels :=3D true ; > > drawpath p ; > > \stopMPcode > > \stoptext > \starttext > > \startMPcode > path p ; p :=3D (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ; > drawpath p ; > drawpoints p ; > drawpointlabels p ; > drawcontrolpoints p ; > drawcontrollines p ; > \stopMPcode > > \stoptext > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000aae411058fdf251e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Hans,
Sorry but I did not see your email.
What is the default color used to draw the path p = ?
Thank you.

Le=C2=A0ven. 9 a= o=C3=BBt 2019 =C3=A0=C2=A013:12, Hans Hagen <j.hagen@xs4all.nl> a =C3=A9crit=C2=A0:
On 8/9/2019 10:57 AM, Fabrice Couvr= eur wrote:
> Hello,
> In the Metafun manual, Hans uses macros like drawpath p ;
> drawcontrollines p ; drawpoints p ; drawcontrolpoints p ...
> How to use them in a document ?
> Where to find source codes ?
> For example, the following code does not work :
>
> \starttext
> \startuseMPgraphic{path}
>=C2=A0 =C2=A0 =C2=A0path p ; p :=3D (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)= ..cycle ;
> \stopuseMPgraphic
>
> \startMPcode
>=C2=A0 =C2=A0 p :=3D p .. cycle ; swappointlabels :=3D true ;
>=C2=A0 =C2=A0 drawpath p ;
> \stopMPcode
> \stoptext
\starttext

\startMPcode
=C2=A0 =C2=A0 =C2=A0path p ; p :=3D (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cy= cle ;
=C2=A0 =C2=A0 =C2=A0drawpath p ;
=C2=A0 =C2=A0 =C2=A0drawpoints p ;
=C2=A0 =C2=A0 =C2=A0drawpointlabels p ;
=C2=A0 =C2=A0 =C2=A0drawcontrolpoints p ;
=C2=A0 =C2=A0 =C2=A0drawcontrollines p ;
\stopMPcode

\stoptext


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000aae411058fdf251e-- --===============6823439835336913260== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6823439835336913260==--