<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div class="" style="word-wrap:break-word">Some code that worked ok but hasn't been used for some time, now gives an error: missing $.
<div class="">It is working fine in ConTeXt, but putting it inside an MPpage goes wrong.</div>
<div class=""><br class="">
</div>
<div class="">Here a minimal example, the output of the ConTeXt run and the error on the MPpage run.</div>
<div class="">Has something changed I missed?</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Hans van der Meer<br class="">
<br class="">
<br class="">
<div class="">The error occurs in this code, my suspect is the cases macro.</div>
<div class="">
<div class="">\starttext</div>
<div class="">\startsetups[dif-1]</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>$\displaystyle</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\Delta_{in} = 1000_2 \cases{(A,2)(2,A)&\cr (6,E)(E,6)&\cr}</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\buildrel S_1 \over \rightarrow \quad</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\Delta_{uit} = 1011_2 \cases{(6,D)(D,6)&\cr (B,0)(0,B)&\cr}</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>$</div>
<div class="">\stopsetups</div>
<div class="">\startMPpage</div>
<div class="">label("\setup[dif-1]",origin);</div>
<div class="">\stopMPpage</div>
<div class="">\stoptext</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
tex error       > tex error on line 9 in file /Users/hansm/Documents/TeX/Test-tex/cases/cases.tex: ! Missing $ inserted</div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco; min-height:16px">
<br class="">
</div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
<inserted text> </div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
$</div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
<to be read again> </div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
\endgroup </div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
\math_fenced_fenced_stop ...leparameter \endgroup </div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
                                                  \advance \c_math_fenced_ne...</div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
\14>:dif-1 ...ses {(A,2)(2,A)&\cr (6,E)(E,6)&\cr }</div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
                                                  \buildrel S_1 \over \right...</div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
l.9 ...edfont[LMRoman-Regular*default]\setup [dif-1]</div>
<p class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco; min-height:16px">
                                                  <br class="x_webkit-block-placeholder">
</p>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
<to be read again> </div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
\relax </div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
...</div>
<div class="" style="margin:0px; font-size:12px; line-height:normal; font-family:Monaco">
l.12 \stopMPpage</div>
<div class=""><br class="">
</div>
<div class="">The ConTeXt run itself is ok, see below</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">\starttext</div>
<div class="">\startsetups[dif-1]</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>$\displaystyle</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\Delta_{in} = 1000_2 \cases{(A,2)(2,A)&\cr (6,E)(E,6)&\cr}</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\buildrel S_1 \over \rightarrow \quad</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\Delta_{uit} = 1011_2 \cases{(6,D)(D,6)&\cr (B,0)(0,B)&\cr}</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>$</div>
<div class="">\stopsetups</div>
<div class="">\setup[dif-1]</div>
<div class="">\stoptext</div>
</div>
<div class=""><br class="">
</div>
</div>
<div class=""><br class="">
</div>
</div>
<div class=""></div>
</div>
</div>
</div>
<div class="" style="word-wrap:break-word">
<div class="">
<div class="">
<div class=""></div>
</div>
<br class="">
</div>
</div>
</body>
</html>