From: "Jairo A. del Rio" <jairoadelrio6@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Conflict between MetaPost (LMTX) and cmarrows
Date: Sun, 25 Apr 2021 23:59:40 -0500 [thread overview]
Message-ID: <CAKyqqaYFayxqAHrmxeJuEV9=kyYBh7vWf2jZyuP77sZOAAweKQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2070 bytes --]
The following:
\starttext
\startMPinitializations
input cmarrows;
setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf";
macro_name = "nicearrow");
\stopMPinitializations
\startMPpage
nicearrow (origin -- (1cm*left));
\stopMPpage
\stoptext
compiles perfectly with ConTeXt MkIV. With LMTX, however, the following
happens:
metapost > initializing instance 'metafun:1' using format 'metafun' and
method 'default'
metapost > loading 'metafun' as 'metafun.mpxl' using method 'default'
metapost > initializing number mode 'scaled'
metapost > message : Loading cmarrows 2006/12/18, v0.9
metafun > log > overloading immutable 'eps'
metafun > log >
metafun > log > error: Equation cannot be performed (numeric=pair)
metafun > log >
metapost > log >
metapost > log > <to be read again>
metapost > log > ;
metapost > log > <for((6.58641,1.4944))> z_[incr.n]:=(EXPR0);
metapost > log > ENDFOR
metapost > log > <argument>
...nt(length(path))of(path),z2,point.ttt.of(path),z9-(0,3rule_thickness#),point.tt.of(path)-3rule_thickness#*(unitvector(direction.tt.of(path))rotated90):z_[incr.n]:=z;endfor
metapost > log > ;transform.T...
metapost > log > hide->exitif.numeric.begingroup(TEXT0)
metapost > log > ;endgroup;
metapost > log >
mapto->begingroup.hide(numeric.n;n:=0;numeric.x,x_[],y,y_[];for.z=(TEXT2):z_[incr.n]:=z;endfor;transform.T;z_2=z_1transformed.T;z_4=z_3transformed.T;z_6=z_5transformed.T;)
metapost > log > T.endgroup
metapost > log >
nicearrow__sgbxww->...(z0,point(length(EXPR2))of(EXPR2),z2,point.ttt.of(EXPR2),z9-(0,3rule_thickness#),point.tt.of(EXPR2)-3rule_thickness#*(unitvector(direction.tt.of(EXPR2))rotated90))
metapost > log > ;fi.save.f,s...
metapost > log > <to be read again>
metapost > log > ;
metapost > log > <*> nicearrow (origin -- (1cm*left));
metafun > log >
metafun > log > I'm sorry, but I don't know how to make such things equal.
(See the two
expressions just above the error message.)
metafun > log >
metapost > log > ;
metapost > log >
What's happening? Is that intended or a bug?
Jairo
[-- Attachment #1.2: Type: text/html, Size: 6063 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2021-04-26 4:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-26 4:59 Jairo A. del Rio [this message]
2021-04-26 6:49 ` Hans Hagen
2021-04-26 7:59 ` Jairo A. del Rio
2021-04-26 8:56 ` Hans Hagen
2021-04-27 7:23 ` Jairo A. del Rio
2021-04-27 12:35 ` Hans Hagen
[not found] ` <CAKyqqaagVc0srydKXTp_WTZq6fJZ3pV3ftfL8TeiC4R0-yu9_A@mail.gmail.com>
2021-04-27 17:00 ` Hans Hagen
2021-04-27 17:06 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKyqqaYFayxqAHrmxeJuEV9=kyYBh7vWf2jZyuP77sZOAAweKQ@mail.gmail.com' \
--to=jairoadelrio6@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).