On 6/6/2017 1:06 AM, Henri Menke wrote:
It seems that \NC in mathalignment is looking ahead for the next \NR, because 
when I wrap the matrix
in an explicit brace group it works fine again:

\definemathmatrix
   [pmatrix]
   [left=\left(,right=\right)]

\starttext

\placeformula
\startformula
   \startmathalignment
     \NC \sigma_x \NC=
     {\startpmatrix
       \NC 0 \NC 1 \NR
       \NC 1 \NC 0 \NR
     \stoppmatrix}
     \NR[+]
   \stopmathalignment
\stopformula

\stoptext
I'll add \NN so that we can this too:

\NN[+] ... \NC ... \NC ... \NR

(needed when we have left sided numbers in which case \NC[+] comes too late)

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to