ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] stackrel in context?
@ 2023-09-21  8:36 Xavier B.
  2023-09-21  9:21 ` [NTG-context] " Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Xavier B. @ 2023-09-21  8:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I want to write:

$0,00\stackrel{\smallfrown}{4}$

like latex [https://tex.stackexchange.com/questions/39225/differences-between-stackrel-and-stackbin]

but context LMTX does not recognize stackrel

What can I do?

Thanks in advance,
Xavier

PS: Please CCme
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: stackrel in context?
  2023-09-21  8:36 [NTG-context] stackrel in context? Xavier B.
@ 2023-09-21  9:21 ` Aditya Mahajan
  2023-09-21  9:37   ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2023-09-21  9:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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-and-stackbin]
> 
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: stackrel in context?
  2023-09-21  9:21 ` [NTG-context] " Aditya Mahajan
@ 2023-09-21  9:37   ` Hans Hagen via ntg-context
  2023-09-21 12:40     ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen via ntg-context @ 2023-09-21  9:37 UTC (permalink / raw)
  To: Aditya Mahajan, mailing list for ConTeXt users; +Cc: Hans Hagen

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-and-stackbin]
>>
>> 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
-----------------------------------------------------------------

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: stackrel in context?
  2023-09-21  9:37   ` Hans Hagen via ntg-context
@ 2023-09-21 12:40     ` Aditya Mahajan
  2023-09-21 14:29       ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2023-09-21 12:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: stackrel in context?
  2023-09-21 12:40     ` Aditya Mahajan
@ 2023-09-21 14:29       ` Hans Hagen
  2023-09-21 19:37         ` Mikael Sundqvist
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2023-09-21 14:29 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: stackrel in context?
  2023-09-21 14:29       ` Hans Hagen
@ 2023-09-21 19:37         ` Mikael Sundqvist
  2023-09-21 20:26           ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Sundqvist @ 2023-09-21 19:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Thu, Sep 21, 2023 at 4:34 PM Hans Hagen <j.hagen@xs4all.nl> wrote:
>
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: stackrel in context?
  2023-09-21 19:37         ` Mikael Sundqvist
@ 2023-09-21 20:26           ` Aditya Mahajan
  2023-09-21 20:51             ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2023-09-21 20:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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-smallfrown-on-top-of-a-letter

I guess, some book/paper somewhere introduced it as an accent, and now others follow the same style.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: stackrel in context?
  2023-09-21 20:26           ` Aditya Mahajan
@ 2023-09-21 20:51             ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2023-09-21 20:51 UTC (permalink / raw)
  To: ntg-context

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-smallfrown-on-top-of-a-letter
> 
> 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
-----------------------------------------------------------------

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-09-21 20:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21  8:36 [NTG-context] stackrel in context? Xavier B.
2023-09-21  9:21 ` [NTG-context] " Aditya Mahajan
2023-09-21  9:37   ` Hans Hagen via ntg-context
2023-09-21 12:40     ` Aditya Mahajan
2023-09-21 14:29       ` Hans Hagen
2023-09-21 19:37         ` Mikael Sundqvist
2023-09-21 20:26           ` Aditya Mahajan
2023-09-21 20:51             ` Hans Hagen

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).