On 9/21/2023 2:40 PM, Aditya Mahajan wrote:
On Thu, 21 Sep 2023, Hans Hagen wrote:
a teaser for Aditya:
\definemathstackers[toprel][top][mathclass=\mathrelationcode]
\definemathstackers[topbin][top][mathclass=\mathbinarycode]
\definemathextensible[toprel][frownedupon]["2322]
\definemathextensible[topbin][frowned] ["2322]
\starttext
$x \frownedupon{4} y + \frowned{!} z = 10$
\stoptext
Interesting, but I think that the OP wanted to use \frown as an accent,
\definemathaccent[topfake][top][offset=auto]
\definemathtopaccent[topfake][frowned]["2322]
\starttext
$ x + \frowned{4} = 10$
\stoptext
when you add in math-acc the offset option after the alignsymbol option
\ifcstok{\mathaccentparameter\c!alignsymbol}\v!yes
\s!nooverflow\space
\fi
\ifcstok{\mathaccentparameter\c!offset}\v!auto
\s!base\space
\fi
and someplace
\definesystemconstant {base}
(a patching exercise)
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________