* Bug in alignment with LMTX version 2022.01.15 17:32
@ 2022-01-17 16:02 Otared Kavian via ntg-context
2022-01-17 16:21 ` Aditya Mahajan via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Otared Kavian via ntg-context @ 2022-01-17 16:02 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Otared Kavian
Hi Hans and Mikael,
While investigating the latest version regarding the math environment, I found that the alignments are not correct.
Here is an example:
% begin bug-alignment.tex
\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]
\starttext
\placeformula[eq:1]
\startformula
\startalignedcases
\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
\stopalignedcases
\stopformula
\stoptext
% end bug-alignment.tex
Best regards: Otared
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in alignment with LMTX version 2022.01.15 17:32
2022-01-17 16:02 Bug in alignment with LMTX version 2022.01.15 17:32 Otared Kavian via ntg-context
@ 2022-01-17 16:21 ` Aditya Mahajan via ntg-context
2022-01-17 22:35 ` Aditya Mahajan via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan via ntg-context @ 2022-01-17 16:21 UTC (permalink / raw)
To: Otared Kavian via ntg-context; +Cc: Aditya Mahajan
On Mon, 17 Jan 2022, Otared Kavian via ntg-context wrote:
> Hi Hans and Mikael,
>
> While investigating the latest version regarding the math environment, I found that the alignments are not correct.
> Here is an example:
>
> % begin bug-alignment.tex
> \definemathmatrix[alignedcases]
> [align={right,left,left},
> distance=3pt,
> left={\left\{},
> right={\right.},
> style=\displaystyle]
> \starttext
>
> \placeformula[eq:1]
> \startformula
> \startalignedcases
> \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
> \stopalignedcases
> \stopformula
>
> \stoptext
> % end bug-alignment.tex
I confirm that this is a bug, which was not there in the version from mid Dec. It appears that the align key does not have any effect. Here's a simpler example:
\definemathmatrix[matrix]
[align={right,left,left}]
\starttext
\startformula
\startmatrix
\NC ABC \NC ABC \NC ABC \NR
\NC AAAAAA \NC AAAAAA \NC AAAAAA \NR
\stopmatrix
\stopformula
\stoptext
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in alignment with LMTX version 2022.01.15 17:32
2022-01-17 16:21 ` Aditya Mahajan via ntg-context
@ 2022-01-17 22:35 ` Aditya Mahajan via ntg-context
2022-01-17 22:53 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan via ntg-context @ 2022-01-17 22:35 UTC (permalink / raw)
To: Aditya Mahajan via ntg-context; +Cc: Aditya Mahajan
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.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in alignment with LMTX version 2022.01.15 17:32
2022-01-17 22:35 ` Aditya Mahajan via ntg-context
@ 2022-01-17 22:53 ` Hans Hagen via ntg-context
2022-01-18 9:11 ` Otared Kavian via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2022-01-17 22:53 UTC (permalink / raw)
To: Aditya Mahajan via ntg-context; +Cc: Hans Hagen
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@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in alignment with LMTX version 2022.01.15 17:32
2022-01-17 22:53 ` Hans Hagen via ntg-context
@ 2022-01-18 9:11 ` Otared Kavian via ntg-context
0 siblings, 0 replies; 5+ messages in thread
From: Otared Kavian via ntg-context @ 2022-01-18 9:11 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Otared Kavian
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
\doifmode{mkiv}{\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}
\doifmode{mkiv}{\definemathmatrix[matrix]
[align={right,left,left}]}
\doifmode{lmtx}{\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}
\doifmode{lmtx}{\definemathmatrix[matrix]
[align={1:right,2:left,3:left}]}
\starttext
\doifelsemode{lmtx}{We are using LMTX}{We are using mkiv}
\placeformula[eq:1]
\startformula
\startalignedcases
\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
\stopalignedcases
\stopformula
\startformula
\startmatrix
\NC ABC \NC ABC \NC ABC \NR
\NC AAAAAA \NC AAAAAA \NC AAAAAA \NR
\stopmatrix
\stopformula
% end bug-aligned-solved.tex
> On 17 Jan 2022, at 23:53, Hans Hagen via ntg-context <ntg-context@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@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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-18 9:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 16:02 Bug in alignment with LMTX version 2022.01.15 17:32 Otared Kavian via ntg-context
2022-01-17 16:21 ` Aditya Mahajan via ntg-context
2022-01-17 22:35 ` Aditya Mahajan via ntg-context
2022-01-17 22:53 ` Hans Hagen via ntg-context
2022-01-18 9:11 ` Otared Kavian via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).