From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106379 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= Newsgroups: gmane.comp.tex.context Subject: Re: Error in MetaFun LMTX Date: Tue, 25 Feb 2020 18:44:31 +0100 Message-ID: References: <6224D2E0-E3BD-4F11-B4C0-DA22466EBE3A@bahnhof.se> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Content-Type: multipart/mixed; boundary="===============2474940355452421645==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="122637"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 25 18:44:58 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6eGP-000VnC-So for gctc-ntg-context-518@m.gmane-mx.org; Tue, 25 Feb 2020 18:44:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 436D718234D; Tue, 25 Feb 2020 18:44:38 +0100 (CET) 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 IAHBBqBzyBKw; Tue, 25 Feb 2020 18:44:36 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 45E1118233C; Tue, 25 Feb 2020 18:44:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A351A18233C for ; Tue, 25 Feb 2020 18:44:34 +0100 (CET) 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 KnasG7X5lL_l for ; Tue, 25 Feb 2020 18:44:33 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.80.101.71; helo=ste-pvt-msa2.bahnhof.se; envelope-from=janerik.hagglof@bahnhof.se; receiver= Original-Received: from ste-pvt-msa2.bahnhof.se (ste-pvt-msa2.bahnhof.se [213.80.101.71]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id CB545181F3A for ; Tue, 25 Feb 2020 18:44:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 544023FAFA for ; Tue, 25 Feb 2020 18:44:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Original-Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id icanHV97C9Jk for ; Tue, 25 Feb 2020 18:44:32 +0100 (CET) Original-Received: from [192.168.1.72] (h-248-232.A400.priv.bahnhof.se [85.24.248.232]) (Authenticated sender: mb287648) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 4EC383FAA5 for ; Tue, 25 Feb 2020 18:44:32 +0100 (CET) In-Reply-To: <6224D2E0-E3BD-4F11-B4C0-DA22466EBE3A@bahnhof.se> X-Mailer: Apple Mail (2.3608.60.0.2.5) 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.io gmane.comp.tex.context:106379 Archived-At: --===============2474940355452421645== Content-Type: multipart/alternative; boundary="Apple-Mail=_84459761-C4A5-4332-BEE2-5384BAF87B38" --Apple-Mail=_84459761-C4A5-4332-BEE2-5384BAF87B38 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Sorry, I discovered the issue myself Space between the : and =3D sign was the origin of error. Problem solved by itself > 25 feb. 2020 kl. 18:34 skrev Jan-Erik H=C3=A4ggl=C3=B6f = : >=20 > The following code gives an error, my goal is to draw 4 different = arrows but only three functions successfully. >=20 > The error log shows >=20 > metapost > initializing number mode 'scaled' > metapost log >=20 > metapost log > loading metafun, including plain.mp version 1.004 = for metafun iv and xl > metapost log >=20 > metapost log > >> unknown path D > metapost log > ! Isolated expression. > metapost log > =20 > metapost log > : > metapost log > <*> ... :=3D(12cm, -1cm)--(11cm, -1cm); path D ; D : > metapost log > = =3D(4cm, -1cm)--(3cm, -1cm)... > metapost log > >=20 > And the code is as follows >=20 > \startMPcode=20 > path A ; A :=3D(0cm, -1cm)--(1cm, -1cm); > path B ; B :=3D(13.5cm, -1cm)--(14.5cm, -1cm); > path C ; C :=3D(12cm, -1cm)--(11cm, -1cm); > path D ; D : =3D(4cm, -1cm)--(3cm, -1cm); > drawarrow A; drawarrow B; drawarrow C ; drawarrow D ; > \stopMPcode >=20 > Unless I uncomment D it gives the above error. >=20 > Mysterious issue >=20 > /Janne > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_84459761-C4A5-4332-BEE2-5384BAF87B38 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Sorry, I discovered the issue myself

Space between the : and =3D sign was = the origin of error.

Problem solved by itself

25 feb. = 2020 kl. 18:34 skrev Jan-Erik H=C3=A4ggl=C3=B6f <janerik.hagglof@bahnhof.se>:

The following code = gives an error, my goal is to draw 4 different arrows but only three = functions successfully.

The error log shows

metapost     =    > initializing number mode 'scaled'
metapost log    > 
metapost log    > loading metafun, including = plain.mp version 1.004 for metafun iv and xl
metapost= log    > 
metapost log   =  > >> unknown path D
metapost log =    > ! Isolated expression.
metapost = log    > <to be read again> 
metapost log    >         =            :
metapost = log    > <*> ... :=3D(12cm, -1cm)--(11cm, -1cm); path = D ; D :
metapost log    >   =                     =                     =          =3D(4cm, -1cm)--(3cm, = -1cm)...
metapost log   =  >

And the code is as follows

\startMPcode 
path A ; A :=3D(0cm, -1cm)--(1cm, -1cm);
path B ; B = :=3D(13.5cm, -1cm)--(14.5cm, -1cm);
path C ; C :=3D(12cm, -1cm)--(11cm, = -1cm);
path D ; D = : =3D(4cm, -1cm)--(3cm, -1cm);
drawarrow A; drawarrow B; drawarrow C ; drawarrow D = ;
\stopMPcode

Unless I uncomment D it gives the above = error.

Mysterious issue

/Janne
_____________________________________________= ______________________________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_84459761-C4A5-4332-BEE2-5384BAF87B38-- --===============2474940355452421645== 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== --===============2474940355452421645==--