Hi Hans,

Thanks a lot for your quick reply and helpful suggestion!

Cheers,
Florent

On Sun, 21 Dec 2025, 12:36 Hans Hagen via ntg-context, <[email protected]>
wrote:

> On 12/21/2025 9:59 AM, Florent Michel wrote:
> > Hi,
> >
> > I have noticed what looks like an extra space after \VL in a math
> > matrix, For instance, when compiling this example from the wiki with
> > LMTX 2025.12.20 23:15, there is an extra space in the last column of
> > each matrix:
> >
> > ________________________________________________
> > \definemathmatrix[mymatrix]
> > [left={\left\lparent\thinspace},
> > right={\thinspace\right\rparent}]
> >
> > \starttext
> >
> > Here is $3 \times 3$ matrix with a column added to it
> > \startformula
> > \startmymatrix
> > \NC 11 \N
> <https://www.google.com/maps/search/%5CNC+11+%5CN?entry=gmail&source=g>C
> 12 \NC 13 \VL 0 \NR
> > \NC 21 \NC
> <https://www.google.com/maps/search/%3E+%5CNC+21+%5CNC+?entry=gmail&source=g>22
> \NC 23 \VL 1 \NR
> > \NC 31 \NC 32 \NC 33 \VL 2 \NR
> > \stopmymatrix
> > \stopformula
> > Here is a block matrix:
> > \startformula
> > \startmymatrix
> > \NC A \VL  B \NR
> > \HL
> > \NC C \VL  D \NR
> > \stopmymatrix
> > \stopformula
> >
> > \stoptext
> > ________________________________________________
> >
> > I had a quick look at the code and it seems this can be resolved by
> > replacing line 1944 in math-ali.mkxl:
> >
> >     - \kern.5\d_math_eqalign_distance
> >     + \kern0\d_math_eqalign_distance
> >
> > (But I am definitely not familiar enough with the code to know if this
> > change may have negative side effects.)
> >
> > Is this extra space intended behaviour? If not, is the change above
> > ‘correct’ (in the sense that it will likely not break anything) or
> > is there a better way?
>
> For now just comment that line. Btw, you can do this:
>
> \definemathmatrix
>    [mymatrix]
>    [fences=parenthesis]
>
> which then uses spacing as set up for classes.
>
> Hans
>
> -----------------------------------------------------------------
>                                            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 : [email protected] /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to