On Fri, Sep 12, 2008 at 11:30 AM, Hans Hagen
Taco Hoekwater wrote:
Aditya Mahajan wrote:
Hi,
I am using ConTeXt ver: 2008.09.10 14:01 MKIV fmt: 2008.9.11 and the following file
\starttext \startMPcode label.bot(\sometxt{$\mathop{}$}, origin) ; \stopMPcode
The problem is that everything within \startMPcode ... \stopMPcode is expanded, but \mathop's (re)definition has \let commands in it.
This works as a workaround:
\startMPcode label.bot(\sometxt{$\noexpand\mathop{}$}, origin) ; \stopMPcode
or \detokenise{a whole bunch of tricky tex}
But actually the definition of \mathop in font-ini.tex needs to be changed so that it won't be expandable any more. The current definition would give problems in the support files (tuo,tuc) as well.
indeed; i already did that, but more math commands might need that treatment
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________