On 9/6/2017 9:55 AM, Christoph Reller wrote:
On Tue, 5 Sep 2017 16:29:52 +0200 Hans Hagen <pra...@wxs.nl <mailto:pra...@wxs.nl>>   wrote:

    On 8/30/2017 9:45 AM, Christoph Reller wrote:
     > On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller
     > <christoph.rel...@gmail.com <mailto:christoph.rel...@gmail.com>
    <mailto:christoph.rel...@gmail.com
    <mailto:christoph.rel...@gmail.com>>>   wrote:
     >
     > There seems to be a problem with the structure information added
     > when using \startmatrix:
     >
     > A fix would be very much appreciated.

    should be ok now


Thank you Hans for this fix!

There seems to be, however, still a minor issue with a more complete MWE:
\math{
   \startmatrix
     \NC A \NC B \NR
     \NC C \NC D \NR
   \stopmatrix}

can you test with

\def\math_matrix_process#1#2%
  {\forgettagging % otherwise dummy mrows and such
   \dowithnextbox
{\scratchdimen\dimexpr(\nextboxdp-\nextboxht)/2 \ifcase#2\or+\mathaxisheight\textfont2\fi\relax

\ifcase#1\relax\or\lower\scratchdimen\or\or\raise\scratchdimen\fi\hbox\bgroup
        \normalstartimath
        \mathmatrixparameter\c!left
        \vcenter{\unvbox\nextbox}%
        \mathmatrixparameter\c!right
        \normalstopimath
      \egroup}%
   \vbox}



The resulting structure tree is as follows:
<document>
'-<math>
   '-<mrow>
     '-<mtext>
       '-<mrow>
         |-<mrow>
         | '-<mtr>
         |   |-<mtd>
         |   | '-<math>
         |   |   '-<mrow>
         |   |     '-<mi>
         |   |       '-"A"
         |   '-<mtd>
         |     '-<math>
         |       '-<mrow>
         |         '-<mi>
         |           '-"B"
         |-<mrow>            (*)
         |-<mrow>
         | '-<mtr>
         |   |-<mtd>
         |   | '-<math>
         |   |   '-<mrow>
         |   |     '-<mi>
         |   |       '-"C"
         |   '-<mtd>
         |     '-<math>
         |       '-<mrow>
         |         '-<mi>
         |           '-"D"
         '-<mrow>            (*)

The elements marked with (*) are IMHO unnecessary. Do you agree?

Cheers
Christoph



___________________________________________________________________________________
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
___________________________________________________________________________________



--

-----------------------------------------------------------------
                                          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