From: Gavin via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Gavin <gavinpublic@comcast.net>
Subject: Re: \hpos in math - Half solved
Date: Wed, 7 Dec 2022 17:03:20 -0700 [thread overview]
Message-ID: <42DFBF94-F972-4BD5-8F34-5218BB787386@comcast.net> (raw)
In-Reply-To: <87e286f8-9785-28b8-93ba-6ac46cce404e@xs4all.nl>
Hi Hans and Mikael,
This is amazing! Mikael's example works for me. I will start using these tools in my project, and I’ll tell you how it goes. It might be a couple weeks, because the physics is also quite challenging.
Thank you!
Gavin
> On Dec 7, 2022, at 3:25 PM, Hans Hagen via ntg-context <ntg-context@ntg.nl> wrote:
>
> On 12/7/2022 1:42 PM, Gavin via ntg-context wrote:
>> Hi List,
>> I solved my original problem 2, allowing me to reuse the same \hpos labels in different equations without interference. I added an equation counter and set up my custom math version of \hpos to use the count as part of the label internally. I tried to do this with a regular ConTeXt counter, but had all sorts of mysterious, wrong behavior. When I switched to using a Lua counter, everything worked immediately. So, while there is nothing brilliant about this solution, I’ll share it for anyone who might want to do something similar in the future.
> attached an example by Mikael ... it should work with tonights update
>
> 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
> -----------------------------------------------------------------
> <221206-3.mkxl>___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2022-12-08 0:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-05 23:39 \hpos in math Gavin via ntg-context
2022-12-06 9:15 ` Hans Hagen via ntg-context
2022-12-06 13:22 ` Gavin via ntg-context
2022-12-07 12:42 ` \hpos in math - Half solved Gavin via ntg-context
2022-12-07 15:30 ` Hans Hagen via ntg-context
2022-12-07 22:25 ` Hans Hagen via ntg-context
2022-12-08 0:03 ` Gavin via ntg-context [this message]
2022-12-08 6:14 ` Mikael Sundqvist via ntg-context
2022-12-08 19:54 ` Otared Kavian via ntg-context
2022-12-08 21:47 ` Hans Hagen via ntg-context
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=42DFBF94-F972-4BD5-8F34-5218BB787386@comcast.net \
--to=ntg-context@ntg.nl \
--cc=gavinpublic@comcast.net \
/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).