From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116567 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hans Hagen via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: \hpos in math Date: Tue, 6 Dec 2022 10:15:08 +0100 Message-ID: References: <4809FBC9-09D4-4055-A37C-23BE177454A7@comcast.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------zDMfR7stNA5J5YPvDIRe1UB6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14195"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Hans Hagen To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 06 10:15:47 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 1p2U3G-0003Ul-Jq for gctc-ntg-context-518@m.gmane-mx.org; Tue, 06 Dec 2022 10:15:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D8D46361326; Tue, 6 Dec 2022 10:15:13 +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 ld-H4JCL13ND; Tue, 6 Dec 2022 10:15:12 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF30B36122C; Tue, 6 Dec 2022 10:15:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AF7B3610CD for ; Tue, 6 Dec 2022 10:15:12 +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 w9F6Qo1sF4UA for ; Tue, 6 Dec 2022 10:15:11 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.20; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Original-Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B348336105C for ; Tue, 6 Dec 2022 10:15:11 +0100 (CET) Original-Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4NRFB72wkpzFn for ; Tue, 6 Dec 2022 09:15:11 +0000 (UTC) Original-Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4NRFB708mZzDK for ; Tue, 6 Dec 2022 09:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1670318111; bh=P/YLHpgPEMCeOo49My8iD+QegPvaofkuTAdA/p3eRYM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=q4sMP6pZVGz4LxqZVDeOKHPiaXBlfp9bU/L0sIMbPLVTzXoB8Nt1uUP1j1fPvh1gj ggDYm4Xv8hdcV/Y+oX6HP52GvmutuIOxKSYvsmI/zPhU27mxnxBkGRTAbLb0IWJPE/ C5HzsYVTc/OGxxF7BpppPwNZklIzf3dmnG760ra8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1670318111; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8gye1u1K8kShkw+AMRpMuwQjyUw+avCB3b3guB0x+P8=; b=kqFOdeMqWzzMueGIdzwf40h6Hcs/FEUgsrBQiMJ4ATKezl4g49peuC0HoET/qLW+uIX+k8 cCwnbUz/jaRCh4P3G74ITJakIQKHQlVyPSe/KtH12nDG2UIMZy5dvI4WIcK+vMu5cohnKW 0vBYvOvKHD25/WYFlGBiVcZZ5YnITyg= ARC-Seal: i=1; s=default; d=freedom.nl; t=1670318111; a=rsa-sha256; cv=none; b=saGZcUJQF6ut+uN2+r2KQ2EL6hhdfXEiaCnR3/74AjTeAfXIFnuBr/XFs8DbE2hE6ddS9A GDpe69msZ9rT6WPnaOP0LqLhu7dbqMfavmxwMAmtfu1VrRSkXxBB6aChooEwbKxJ0vWUgi OhSiyaOyleGMxyeKw8ZSRYmHh9xZsPU= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Content-Language: en-US X-Soverin-Authenticated: true In-Reply-To: <4809FBC9-09D4-4055-A37C-23BE177454A7@comcast.net> 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:116567 Archived-At: This is a multi-part message in MIME format. --------------zDMfR7stNA5J5YPvDIRe1UB6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/6/2022 12:39 AM, Gavin via ntg-context wrote: > Hello List, > > I am working on a project which combines graphics with formulas, like this: > > My code for creating this formula is attached. It works well, but I have a couple of questions that could make it work better. > > 1) Is there a mathematics version of \hpos? The contents of \hpos are set as text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses \hpos but sets the contents as display-style math. This isn’t great for spacing, and it does't adapt to different math styles. \framed has a math version, \mframed, that sets the contents in the appropriate math style. If anyone know a way to accomplish that with \hpos, I’d love to know. there actually is a subsystem that keeps math as-is-it (styles and spacing and such), see attached > 2) Is there a way to limit the scope of the \hpos labels to a single formula. This could turn into a book length project, with several formulas per page and several connections per formula. If every \hpos in the entire book needs a unique identifier, I could go mad. Under no circumstances will I connect one formula to another, so I’d like to be able to use something like \hpos{A}{…}…\hpos{B}{…} in each formula. Any suggestions? one problem is (and i'm working on that) that one could want multiple anchors on a math atom as well as pu tit on the nuclues only > I’ve got to say, LMTX is an absolutely amazing tool for this project, which includes complicated networks of connections above and below many formulas. The integration of TeX, MetaPost, and Lua makes this project tremendous fun. that's the idea > P.S. For the curious, I’m using a method for doing General Relativity based on spinors rather than tensors, following the methods of Penrose and Rindler in their 1985 books “Spinors and Space-time.” In the typesetting example above, the e_\alpha and e_{\dot\beta} are basis spinors (one left-handed, one right-handed). The e^\mu is the Infeld-van der Waerden symbol relating the spin basis to the coordinate basis. The connections are spinor index contractions. The formula above relates the components of the Infeld-van der Waerden symbol to the Pauli sigma matrices. This relationship only works in flat space, so this is an easy example! [Penrose and Rindler, vol 1 p. 125] in your example we need a way to anchor on just the 'e' right? or do you want it on the e + super/subscript? 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 ----------------------------------------------------------------- --------------zDMfR7stNA5J5YPvDIRe1UB6 Content-Type: text/plain; charset=UTF-8; name="xx.tex" Content-Disposition: attachment; filename="xx.tex" Content-Transfer-Encoding: base64 XHVzZW1vZHVsZVthcnRpY2xlLWJhc2ljXQoKXHNldHVwYm9keWZvbnRbZGVqYXZ1XQoKXHN0 YXJ0dGV4dAoKXHNldHVwYm94YW5jaG9yY29udGVudAogIFt0b3AsbGVmdF0KICBbcnVsZWNv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W9yZSBncmFudWxhcj8KClxibGFua1syKmJpZ10KClxjb25uZWN0Ym94 YW5jaG9yc1t0b3BdICAgW3RvcF0gICBbdGV4dD17XHNtYWxsXHNtYWxsXHN0cnV0XGJmIHdh dGNofV17b25lfSAge3R3b30KXGNvbm5lY3Rib3hhbmNob3JzW2JvdHRvbV1bYm90dG9tXVt0 ZXh0PXtcc21hbGxcc21hbGxcc3RydXRcYmYgb3V0fV0gIHt0aHJlZX17Zm91cn0KCkFuZCBj YW4gd2UgZG8KJAolICAgICBcc2hvd2JveGVzCiAgICB4ICsgXGZyYWN7MSBcbWF0aGJveGFu Y2hvcmVke29uZX17K30geCAtIHp9ezIgXG1hdGhib3hhbmNob3JlZHt0aHJlZX17LX0geH0K JAphbmQKJAolICAgICBcc2hvd2JveGVzCiAgICB6ICsgXGZyYWN7MSBcbWF0aGJveGFuY2hv cmVke3R3b317K30geF4yIC0gen17MiBcbWF0aGJveGFuY2hvcmVke2ZvdXJ9ey19IHheM30K JAp0byBiZSBtb3JlIGdyYW51bGFyPwoKXHN0b3B0ZXh0Cgo= --------------zDMfR7stNA5J5YPvDIRe1UB6 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== --------------zDMfR7stNA5J5YPvDIRe1UB6--