From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116622 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gavin via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Mathematical MetaFun Mania Date: Thu, 15 Dec 2022 09:15:47 -0700 Message-ID: <4D785BE1-91F2-4E90-82A9-155E7E29DBC9@comcast.net> References: <8f54f916-907b-12cf-9525-ff4a40665ae2@freedom.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_53EEBDF0-5EA7-4812-8CF9-20607AC654E6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24196"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gavin To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 15 17:17:34 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5qvO-00066Z-RA for gctc-ntg-context-518@m.gmane-mx.org; Thu, 15 Dec 2022 17:17:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48B5F2A4C5B; Thu, 15 Dec 2022 17:17:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zwMBXekJEjS4; Thu, 15 Dec 2022 17:17:17 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7A76E2A4C6D; Thu, 15 Dec 2022 17:17:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AC0942A4C5B for ; Thu, 15 Dec 2022 17:17:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dpalyM4BxgKK for ; Thu, 15 Dec 2022 17:17:15 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=96.102.19.36; helo=resqmta-c1p-023463.sys.comcast.net; envelope-from=gavinpublic@comcast.net; receiver= X-Greylist: delayed 60 seconds by postgrey-1.36 at zapf.ntg.nl; Thu, 15 Dec 2022 17:17:15 CET Original-Received: from resqmta-c1p-023463.sys.comcast.net (resqmta-c1p-023463.sys.comcast.net [96.102.19.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C2CB62A4B7C for ; Thu, 15 Dec 2022 17:17:15 +0100 (CET) Original-Received: from resomta-c1p-023413.sys.comcast.net ([96.102.18.230]) by resqmta-c1p-023463.sys.comcast.net with ESMTP id 5pekpg6kTw0SA5qu5pExtN; Thu, 15 Dec 2022 16:16:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1671120973; bh=cBWSdyXme2kaeXprebCBRjS7AS1h009QUHeIKK/Cy38=; h=Received:Received:From:Message-Id:Content-Type:Mime-Version: Subject:Date:To:Xfinity-Spam-Result; b=KYXdUmVIp/RazZdZ68UOUtuu455LrpoF+vCBdU9++NsuPdxkqA2mQENxBTYX7REgk aQ43peiCnvhD9vsslvUgth+wVKbLk9wViqoi7/q9ajThYBhDksupH3Xhk3WS4KDQW8 woz3UsNQIB9NcYnV6X44Iq2k0h+Isqkvh2Vqczi1qgyUsnf4cy+AD5pMYA0sH0frv9 dx4FCaDAzl8JMxSbAswIxBa4plpoYJ0E3YI7vxVnbZvN4tAep1AzRtFkNSNdXnoWO5 /+vsTD4HLarf98tsH+5KFtEaq1I7UVTLk71Ehnz0+ykwFDZ6REdAVUc9/iNqoFS4VV 7IzbtxM+Ql0HA== Original-Received: from smtpclient.apple ([IPv6:2605:b40:14d0:ab00:c534:a2c2:cfbd:2a7a]) by resomta-c1p-023413.sys.comcast.net with ESMTPSA id 5qtppXikBulaT5qttp0XLw; Thu, 15 Dec 2022 16:16:09 +0000 X-Xfinity-VMeta: sc=-100.00;st=legit In-Reply-To: <8f54f916-907b-12cf-9525-ff4a40665ae2@freedom.nl> X-Mailer: Apple Mail (2.3731.200.110.1.12) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:116622 Archived-At: --Apple-Mail=_53EEBDF0-5EA7-4812-8CF9-20607AC654E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Hans and List, >> 2) Can I tell \connectboxanchors to use my MetaPost code and pass = key=3Dvalue pairs like I do with \setMPpositiongraphic? > see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=3Dvalue pairs, but I cannot get it to pass mine. = Is there some intermediate step? Your example has a key=3Dvalue pair in = \connectboxanchors and which is accessed in the MetaPost code. The pair, = and MetaPost code are: rulethickness=3D1pt mpvard =E2=80=9Crulethickness" However, if I change the pair and MPcode to (see attached example for = full code) myrulethickness=3D1pt mpvard =E2=80=9Cmyrulethickness" it doesn=E2=80=99t work. Similarly, you have a pair and MPcode that = don=E2=80=99t match. rulecolor=3Ddarkgreen mpvars "linecolor" This may be a historical fluke, but it suggests that there is some = intermediate translation that I am missing. Any way I can name and pass = by own key=3Dvalue pairs? Thanks! Gavin --Apple-Mail=_53EEBDF0-5EA7-4812-8CF9-20607AC654E6 Content-Disposition: attachment; filename=mpvarQuestion.tex Content-Type: application/octet-stream; x-unix-mode=0666; name="mpvarQuestion.tex" Content-Transfer-Encoding: 7bit % !TEX useAlternatePath % !TEX useConTeXtSyncParser \continuewhenlmtxmode \usemodule[article-basic] \starttext \startMPpositiongraphic{mypos:boxanchor:top} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { up } .. t ; drawarrow p withpen pencircle scaled mpvard "rulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \startMPpositiongraphic{mypos:boxanchor:bottom} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { down } .. t ; drawarrow p withpen pencircle scaled mpvard "myrulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \startboxanchoring[+] \connectboxanchors[top] [top] [distance=1ex,rulethickness=1pt,rulecolor=darkgreen,mp=mypos:boxanchor:top] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,myrulethickness=1pt,rulecolor=darkred, mp=mypos:boxanchor:bottom] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} \mathboxanchored[nucleus]{c3}{e}_{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha\dot{\beta}}^{\mu} \stopformula \stopboxanchoring \stoptext --Apple-Mail=_53EEBDF0-5EA7-4812-8CF9-20607AC654E6 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --Apple-Mail=_53EEBDF0-5EA7-4812-8CF9-20607AC654E6--