Hello,
Running the following context code doesn't seem to work with "context --luatex". Works with "context --xetex" however.
------
\setuplayout[backspace=5cm,margin=3cm,margindistance=.5cm,width=middle]
\setupinmargin[stack=yes]
\starttext
A\margintext{A} B\margintext{B}.
C\inmargin{C} D\inmargin{D}.
\stoptext
-----
I get the following error:
11 >> C\inmargin{C} D\inmargin{D}.
12
13 \stoptext
14
\ctxcommand ...\directlua \zerocount {commands.#1}
\@@ar@@1 ...se \currentposition \previousposition
{\scratchskip \dimexpr \MP...
\redoloop ->\expandrecursecontent
\endofloop
<to be read again>
{
<inserted text>
2
\dodoloop ...mexpr \recurselevel +\plusone \relax
}
...
l.11 C
\inmargin{C} D\inmargin{D}.
%Dinh