From: Keith McKay <mckaymeister@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Possible problem with context using the ARM 64bit download for Apple Silicon M1
Date: Tue, 23 Feb 2021 16:51:18 +0000 [thread overview]
Message-ID: <c8d1931c-c362-4751-ef86-cdbae5cc759c@gmail.com> (raw)
[-- 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
___________________________________________________________________________________
next reply other threads:[~2021-02-23 16:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 16:51 Keith McKay [this message]
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
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=c8d1931c-c362-4751-ef86-cdbae5cc759c@gmail.com \
--to=mckaymeister@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).