particular mpost label fails with recent ConTeXt
With a recent ConTeXt, the following file (run with "mpost -mem=metafun test.mp") % use ConTeXt to typeset labels (needs -mem=metafun option) verbatimtex %&cont-en etex beginfig(100) % flow arrow label(btex $\displaystyle\buildrel \rm Flow \over {=\joinrel=\joinrel\Longrightarrow}$ etex, origin); endfig; end fails with: ! Unable to make mpx file. l.7 label(btex $\displaystyle\buildrel \rm Flow \over Transcript written on fig.log. The error in mpxerr.log is: ! Illegal unit of measure (pt inserted). <to be read again> = <argument> = \joinrel =\joinrel \Longrightarrow \buildrel ...mathrel {\mathop {\kern \zerocount #2 }\limits ^{#1}} l.14 {=\joinrel=\joinrel\Longrightarrow} $% It works with ConTeXt 2008.10.31. It fails with ConTeXt 2009.06.04 (with texlive2007 from Debian or with vanilla texlive2008).
Sanjoy Mahajan wrote:
The error in mpxerr.log is:
! Illegal unit of measure (pt inserted). <to be read again> = <argument> = \joinrel =\joinrel \Longrightarrow \buildrel ...mathrel {\mathop {\kern \zerocount #2 }\limits ^{#1}} l.14 {=\joinrel=\joinrel\Longrightarrow} $%
The problem is that the \zerocount that is used in buildrel: \def\buildrel#1\over#2% {\mathrel{\mathop{\kern\zerocount#2}\limits^{#1}}} somehow ends up being a \chardef. A shorter test file is: \starttext $\buildrel a \over b $ \stoptext the weird thing is that I can't figure out where that definition takes place ?? (well, there is one in syst-ini, but that should have been overwritten by the one in syst-gen, afaik). Best wishes, Taco
Taco Hoekwater wrote:
Sanjoy Mahajan wrote:
The error in mpxerr.log is:
! Illegal unit of measure (pt inserted). <to be read again> = <argument> = \joinrel =\joinrel \Longrightarrow \buildrel ...mathrel {\mathop {\kern \zerocount #2 }\limits ^{#1}} l.14 {=\joinrel=\joinrel\Longrightarrow} $%
The problem is that the \zerocount that is used in buildrel:
\def\buildrel#1\over#2% {\mathrel{\mathop{\kern\zerocount#2}\limits^{#1}}}
somehow ends up being a \chardef. A shorter test file is:
\starttext $\buildrel a \over b $ \stoptext
the weird thing is that I can't figure out where that definition takes place ?? (well, there is one in syst-ini, but that should have been overwritten by the one in syst-gen, afaik).
math-ini.mkii \def\buildrel#1\over#2% {\mathrel{\mathop{\kern\zeropoint#2}\limits^{#1}}} -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen wrote:
the weird thing is that I can't figure out where that definition takes place ?? (well, there is one in syst-ini, but that should have been overwritten by the one in syst-gen, afaik).
math-ini.mkii
\def\buildrel#1\over#2% {\mathrel{\mathop{\kern\zeropoint#2}\limits^{#1}}}
Well, yeah. I meant the (incorrect!) redefinition of \zeropoint. Best wishes, Taco
participants (3)
-
Hans Hagen
-
Sanjoy Mahajan
-
Taco Hoekwater