[NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

Otared Kavian otared at gmail.com
Tue Jan 18 10:11:43 CET 2022

Hi Hans and Aditya,

Thanks for the clarification. Since for some documents I still use mkiv, I ended up using a definition which depends on whether one is using mkiv or lmtx, as in the example below. I wonder if there is a better solution.

Best regards: Otared
% begin bug-aligned-solved.tex




\doifelsemode{lmtx}{We are using LMTX}{We are using mkiv}

\NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, \Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  \partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR

    \NC ABC    \NC ABC    \NC ABC    \NR
% end bug-aligned-solved.tex

> On 17 Jan 2022, at 23:53, Hans Hagen via ntg-context <ntg-context at ntg.nl> wrote:
> On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote:
>> On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote:
>>> I confirm that this is a bug, which was not there in the version from mid Dec.
>> Not a bug, but new interface. You need:
>> \definemathmatrix[matrix]
>>                  [align={1:right,2:left,3:left}]
>> It is also possible to say: align={all:middle}. Combination of the two don't seem to work.
> basically we increment each element but a number sets the column so one can go to a specific column; empty (whatever non number will start again at zero)
> 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 : ntg-context at 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
> ___________________________________________________________________________________

More information about the ntg-context mailing list