Hi, I want to write: $0,00\stackrel{\smallfrown}{4}$ like latex [https://tex.stackexchange.com/questions/39225/differences-between-stackrel-a...] but context LMTX does not recognize stackrel What can I do? Thanks in advance, Xavier PS: Please CCme
On Thu, 21 Sep 2023, Xavier B. wrote:
Hi,
I want to write:
$0,00\stackrel{\smallfrown}{4}$
like latex [https://tex.stackexchange.com/questions/39225/differences-between-stackrel-a...]
but context LMTX does not recognize stackrel
What can I do?
\stackrel is defined in context (with almost the same definition as latex). You get an error because \smallfrown is not defined. Aditya
On 9/21/2023 11:21 AM, Aditya Mahajan wrote:
On Thu, 21 Sep 2023, Xavier B. wrote:
Hi,
I want to write:
$0,00\stackrel{\smallfrown}{4}$
like latex [https://tex.stackexchange.com/questions/39225/differences-between-stackrel-a...]
but context LMTX does not recognize stackrel
What can I do?
\stackrel is defined in context (with almost the same definition as latex). You get an error because \smallfrown is not defined. 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 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
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, Aditya
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 -----------------------------------------------------------------
Hi,
On Thu, Sep 21, 2023 at 4:34 PM Hans Hagen
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
Nice with offset=auto. It is not clear to me what the intent/meaning is of the original example, but one can also try the 23DC (can extend as \overparent): \definemathtopaccent[topfake][frowned]["2322] \definemathtopaccent[topfake][Frowned]["23DC] \starttext $ x + \frowned{4} = 10$ $ x + \Frowned{4} = 10$ $ x + \Frowned{4444} = 10$ $ x + \overparent{4} = 10$ $ x + \overparent{4444} = 10$ \stoptext /Mikael
On Thu, 21 Sep 2023, Mikael Sundqvist wrote:
Nice with offset=auto. It is not clear to me what the intent/meaning is of the original example, but one can also try the 23DC (can extend as \overparent):
https://tex.stackexchange.com/questions/128625/how-to-put-smallsmile-or-smal... I guess, some book/paper somewhere introduced it as an accent, and now others follow the same style. Aditya
On 9/21/2023 10:26 PM, Aditya Mahajan wrote:
On Thu, 21 Sep 2023, Mikael Sundqvist wrote:
Nice with offset=auto. It is not clear to me what the intent/meaning is of the original example, but one can also try the 23DC (can extend as \overparent):
https://tex.stackexchange.com/questions/128625/how-to-put-smallsmile-or-smal...
I guess, some book/paper somewhere introduced it as an accent, and now others follow the same style. and then someone (likely non-math-aware) able to make a case for getting it into unicode where it disappears in the avelange of weird symbols
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 -----------------------------------------------------------------
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Hans Hagen
-
Mikael Sundqvist
-
Xavier B.