Hi all

I have been using ConTeXt (X86 64bits) on my mac mini Apple Silicon M1 and it works well using Rosetta translation for the M1. I recently installed the ARM 64bits version (separately from the X86 64bits version) which I assume does not require translation using Rosetta. However I had a error with the lmt_shade command in the ARM 64bits ConTeXt verson but not in with the X86 64bits version of ConTeXt. The MWE is shown below. This is actually taken from the LuaMetaFun manual. I also noticed that some figures are missing in the manual (Chapter 7, Shade) which is part of the ARM 64bit tree but not in the manual in the X86 64bits tree.

Best Wishes

Keith McKay

Hamilton, Scotland.

%%%%%%%%%%%%%%%%%%%%%%%%%

\setuppapersize [A4, portrait]

\usecolors[crayola]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor3", r = 0.22, g = 0.44, b = 0.66 ] ;

definecolor [ name = "MyColor4", r = 0.66, g = 0.44, b = 0.22 ] ;

draw lmt_shade [

path = fullcircle scaled 4cm,

direction = "right",

domain = { 0, 2 },

colors = { "MyColor3", "MyColor4" },

] ;

StopPage;

\stopMPpage

\stoptext

%%%%%%%%%%%%%%%%%%%%%%%%

Here is the error taken from the log

<snip>

system >

system > ConTeXt ver: 2021.02.20 16:50 LMTX fmt: 2021.2.21 int: english/english

system >

system > 'cont-new.mkxl' loaded <snip>

metapost > initializing number mode 'scaled'

metafun > log >

metafun > log > error: Not a cycle

metafun > log >

metapost > log > <to be read again>

metapost > log > withprescript

metapost > log > <argument> ...asparameter"vector":center_a:=point(getparameter"vector"1)of.mfun_shade_path;center_b:=point(getparameter"vector"2)of.mfun_shade_path;fi.fill.mfun_shade_path.withprescript

metapost > log > "sh_domain="...

metapost > log > image->begingroup.save.currentpicture;picture.currentpicture;currentpicture:=nullpicture;(TEXT3)

metapost > log > ;currentpicture.if.str(SUFFIX2)<>"":shifted(mfun_labxf(SUFFIX2)*lrcorner.p+mfun_labyf(SUFFIX2)*ulcorn...

metapost > log > lmt_do_shade->...ve="circular":draw.fullcircle.scaled(radius_a)shifted.center_a.dashed.evenly;draw.fullcircle.scaled(factor*radius_b)shifted-center_b.dashed.evenly;fi.fi.popparameters;)

metapost > log > endgroup

metapost > log > <scantokens> lmt_do_shade

metapost > log >

metapost > log > <*> ... name = "MyColor4", r = 0.66, g = 0.44, b = 0.22 ] ; draw lmt_shade [ path = fullcircle scaled 4cm, direction = "right", domain = { 0, 2 }, colors = { "MyColor3", "MyColor4" }, ]

metafun > log >

metafun > log > That contour should have ended with '.. cycle' or '& cycle'. So I'll not change

anything just now.

metafun > log >

metapost > log > ; StopPage; ;

metapost > log >