ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Possible problem with context using the ARM 64bit download for Apple Silicon M1
@ 2021-02-23 16:51 Keith McKay
  2021-02-23 17:21 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Keith McKay @ 2021-02-23 16:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2765 bytes --]

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 >


[-- Attachment #1.2: Type: text/html, Size: 10056 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] 5+ messages in thread

end of thread, other threads:[~2021-02-23 19:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 16:51 Possible problem with context using the ARM 64bit download for Apple Silicon M1 Keith McKay
2021-02-23 17:21 ` Hans Hagen
2021-02-23 19:10   ` Keith McKay
2021-02-23 19:20     ` Hans Hagen
2021-02-23 19:41       ` Bruce Horrocks

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