<div dir="ltr"><div><div><div><div><div><div><div><div><div>In MetaPost, the following code produces <br><br>2 "textual" "textual"<br><br></div>as expected.<br><br></div><div>% Begin code %<br></div>picture pct;<br>pct:=btex{a\,b}etex;<br><br>show length pct;<br>for tkn within pct:<br>  for str="bounded", "clipped", "filled", "stroked", "textual":<br>    if scantokens str tkn: show str; fi<br>  endfor<br>endfor<br><br>beginfig(0)<br>endfig;<br></div>end<br></div>% End code %<br><br></div>However, using luamplib (with lualatex), the following code produces<br><br></div>1 "stroked"<br><br></div>which is unexpected.<br><br>    \begin{mplibcode}<br>        picture pct;<br>        pct:=btex a\,b" etex;<br><br>        show length pct;<br>        for tkn within pct:<br>            for str="bounded", "clipped", "filled", "stroked", "textual":<br>                if scantokens str tkn: show str; fi<br>            endfor<br>        endfor<br><br>        beginfig(0)<br>        endfig;<br>    \end{mplibcode}<br><br></div>Why does luamplib indicate that the btex/etex has length 1, and why does that picture have only 1 stroked token?<br><br></div>Troy Henderson<br></div>