Conflict between MetaPost (LMTX) and cmarrows
![](https://secure.gravatar.com/avatar/23c65792d6f3eb5f6194f6ec9eadc2ac.jpg?s=120&d=mm&r=g)
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 >
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/26/2021 6:59 AM, Jairo A. del Rio wrote:
The following:
\starttext
\startMPinitializations
input cmarrows;
setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf"; macro_name = "nicearrow");
\stopMPinitializations
\startMPpage
metafun > log > error: Equation cannot be performed (numeric=pair) I don't know, but from the message it looks like some 'local' variables is not saved and defined. I'm surprised that loading some mf file works at all (because it also assumes some mf related definitions). I also hav eno clue if such a package adopts 'core' metafun code (and mpiv metafun is different from mpii).
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/23c65792d6f3eb5f6194f6ec9eadc2ac.jpg?s=120&d=mm&r=g)
El lun, 26 de abr. de 2021 a la(s) 01:49, Hans Hagen (j.hagen@xs4all.nl) escribió:
On 4/26/2021 6:59 AM, Jairo A. del Rio wrote:
The following:
\starttext
\startMPinitializations
input cmarrows;
setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf"; macro_name = "nicearrow");
\stopMPinitializations
\startMPpage
metafun > log > error: Equation cannot be performed (numeric=pair) I don't know, but from the message it looks like some 'local' variables is not saved and defined. I'm surprised that loading some mf file works at all (because it also assumes some mf related definitions). I also hav eno clue if such a package adopts 'core' metafun code (and mpiv metafun is different from mpii).
It's a generic, "pure" MetaPost package: https://www.ctan.org/pkg/cmarrows Fonts are in /fonts/source/public in a TeX Live distribution, in case it helps. Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Jairo
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/26/2021 9:59 AM, Jairo A. del Rio wrote:
El lun, 26 de abr. de 2021 a la(s) 01:49, Hans Hagen (j.hagen@xs4all.nl mailto:j.hagen@xs4all.nl) escribió:
On 4/26/2021 6:59 AM, Jairo A. del Rio wrote: > The following: > > \starttext > > \startMPinitializations > > input cmarrows; > > setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf"; > macro_name = "nicearrow"); > > \stopMPinitializations > > \startMPpage
> metafun > log > error: Equation cannot be performed (numeric=pair) I don't know, but from the message it looks like some 'local' variables is not saved and defined. I'm surprised that loading some mf file works at all (because it also assumes some mf related definitions). I also hav eno clue if such a package adopts 'core' metafun code (and mpiv metafun is different from mpii).
It's a generic, "pure" MetaPost package:
https://www.ctan.org/pkg/cmarrows https://www.ctan.org/pkg/cmarrows
that doesn't make it immune from clashes in used variables with differnt types ... metafun is more than plain mp so more can clash
Fonts are in /fonts/source/public in a TeX Live distribution, in case it helps. i have a rather minimal tex setup so i can't run that (i'm not going to clutter my system now)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/23c65792d6f3eb5f6194f6ec9eadc2ac.jpg?s=120&d=mm&r=g)
So, should I share relevant files? AFAIK only cmarrows and .mf files in the cm source folder are involved. I hope you can check it if a solution is possible and not too demanding. Thanks beforehand. Regards, Jairo El lun, 26 de abr. de 2021 a la(s) 03:56, Hans Hagen (j.hagen@xs4all.nl) escribió:
On 4/26/2021 9:59 AM, Jairo A. del Rio wrote:
El lun, 26 de abr. de 2021 a la(s) 01:49, Hans Hagen (j.hagen@xs4all.nl mailto:j.hagen@xs4all.nl) escribió:
On 4/26/2021 6:59 AM, Jairo A. del Rio wrote: > The following: > > \starttext > > \startMPinitializations > > input cmarrows; > > setup_cmarrows(arrow_name = "texarrow"; parameter_file =
"cmr6.mf";
> macro_name = "nicearrow"); > > \stopMPinitializations > > \startMPpage
> metafun > log > error: Equation cannot be performed (numeric=pair) I don't know, but from the message it looks like some 'local'
variables
is not saved and defined. I'm surprised that loading some mf file
works
at all (because it also assumes some mf related definitions). I also hav eno clue if such a package adopts 'core' metafun code (and mpiv
metafun
is different from mpii).
It's a generic, "pure" MetaPost package:
https://www.ctan.org/pkg/cmarrows https://www.ctan.org/pkg/cmarrows
that doesn't make it immune from clashes in used variables with differnt types ... metafun is more than plain mp so more can clash
Fonts are in /fonts/source/public in a TeX Live distribution, in case it helps. i have a rather minimal tex setup so i can't run that (i'm not going to clutter my system now)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/27/2021 9:23 AM, Jairo A. del Rio wrote:
So, should I share relevant files? AFAIK only cmarrows and .mf files in the cm source folder are involved. I hope you can check it if a solution is possible and not too demanding. Thanks beforehand. you can make a minimal failure example but I gues sthat the solution has to be in the mf macros (as there is where some pair/numeric clash happens)
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Jairo A. del Rio