ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Stacking math symbols
@ 2016-02-23 18:31 Nicola
  2016-02-23 21:11 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Nicola @ 2016-02-23 18:31 UTC (permalink / raw)
  To: ntg-context

I find it a bit surprising that ConTeXt gives 'missing } inserted'
with:

\starttext\startformula
\mathop=^{\rm def}
\stopformula\stoptext

(\mathop{=}^... is fine, though).

The above formula is correct in Plain (Lua)TeX (in fact, it is
copied from The TeX Book). Why does ConTeXt need braces?

(Before you point it out: I know that I should use \stackrel…)

Nicola


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Stacking math symbols
  2016-02-23 18:31 Stacking math symbols Nicola
@ 2016-02-23 21:11 ` Hans Hagen
  2016-02-23 22:07   ` Nicola
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2016-02-23 21:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/23/2016 7:31 PM, Nicola wrote:
> I find it a bit surprising that ConTeXt gives 'missing } inserted'
> with:
>
> \starttext\startformula
> \mathop=^{\rm def}
> \stopformula\stoptext
>
> (\mathop{=}^... is fine, though).
>
> The above formula is correct in Plain (Lua)TeX (in fact, it is
> copied from The TeX Book). Why does ConTeXt need braces?

this is because \mathop is redefined (in th eprocess assuming a braced 
argument) ... this is a mkii leftover which is actually no longer needed 
(mkii needed more tweaks to get fonts right)

you can add this to cont-new.mkiv

\let\mathop\normalmathop

but i'd use { } anyway

> (Before you point it out: I know that I should use \stackrel…)

don't worry ... i would not have thought of it (i never have to enter 
that kind of math)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Stacking math symbols
  2016-02-23 21:11 ` Hans Hagen
@ 2016-02-23 22:07   ` Nicola
  0 siblings, 0 replies; 3+ messages in thread
From: Nicola @ 2016-02-23 22:07 UTC (permalink / raw)
  To: ntg-context

On 2016-02-23 21:11:11 +0000, Hans Hagen said:

> On 2/23/2016 7:31 PM, Nicola wrote:
>> I find it a bit surprising that ConTeXt gives 'missing } inserted'
>> with:
>> 
>> \starttext\startformula
>> \mathop=^{\rm def}
>> \stopformula\stoptext
>> 
>> (\mathop{=}^... is fine, though).
>> 
>> The above formula is correct in Plain (Lua)TeX (in fact, it is
>> copied from The TeX Book). Why does ConTeXt need braces?
> 
> this is because \mathop is redefined (in th eprocess assuming a braced
> argument) ... this is a mkii leftover which is actually no longer needed
> (mkii needed more tweaks to get fonts right)
> 
> you can add this to cont-new.mkiv
> 
> \let\mathop\normalmathop
> 
> but i'd use { } anyway

Thanks for the clarification!

Nicola


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-02-23 22:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 18:31 Stacking math symbols Nicola
2016-02-23 21:11 ` Hans Hagen
2016-02-23 22:07   ` Nicola

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