ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Conflict between MetaPost (LMTX) and cmarrows
@ 2021-04-26  4:59 Jairo A. del Rio
  2021-04-26  6:49 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Jairo A. del Rio @ 2021-04-26  4:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-04-27 17:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26  4:59 Conflict between MetaPost (LMTX) and cmarrows Jairo A. del Rio
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

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).