Stacking math symbols
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
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 -----------------------------------------------------------------
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
participants (2)
-
Hans Hagen
-
Nicola