ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Otared Kavian <otared@gmail.com>
Subject: Re: Bug in alignment with LMTX version 2022.01.15 17:32
Date: Tue, 18 Jan 2022 10:11:43 +0100	[thread overview]
Message-ID: <D7030D6F-D673-48DC-BA5B-0DC77CC76CEE@gmail.com> (raw)
In-Reply-To: <afa47b26-9108-d14f-aeb7-68a9a3f5035c@xs4all.nl>

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
___________________________________________________________________________________

      reply	other threads:[~2022-01-18  9:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-17 16:02 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D7030D6F-D673-48DC-BA5B-0DC77CC76CEE@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=otared@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).