From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 7AFE028C47 for ; Wed, 17 Jan 2024 13:47:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 62FE0483DFC for ; Wed, 17 Jan 2024 13:46:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 803Y_87NdjRJ for ; Wed, 17 Jan 2024 13:46:09 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4C3A248406F for ; Wed, 17 Jan 2024 13:43:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DD249482B80 for ; Wed, 17 Jan 2024 13:43:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O8pbUnld7Avg for ; Wed, 17 Jan 2024 13:43:12 +0100 (CET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 40387482B79 for ; Wed, 17 Jan 2024 13:43:12 +0100 (CET) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-40e8cf57d66so2621465e9.1 for ; Wed, 17 Jan 2024 04:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705495392; x=1706100192; darn=ntg.nl; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=Le+5C4ZEqS4s5CR+kS3ks903pKlptV8ajbdgoj/kJlU=; b=a5RrVPxPkliZKOlWZG8CpV1izMuutx5IrART/02kTlDm1Lf38kLXVP8y2MSjhjzP9M mVc/1wqJbYMeaJC/sGvgOsNvpLVMLNYULheEuXWOQjCGPw8iZ9AfIaUaj1zny1k4PK7u 7iARyPr8mIvIWeySDNP0Rc/0GtYpoWi/mp15WLudGaa9G+HRY8Z6/BokOixYkW3PI/4C xCffYRTtkLOAigUJR9YJSrnMs/P2IGd/BN10jxr6NRvppy1WEiKFw9yz3ogAx1yLu5ZA T1vqye0RdXw5e+RGG5CM4WIvgBfuHA3rKkHev1uRXoGOwKK1DOmMFxKashrrU74LHzit 9hyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705495392; x=1706100192; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Le+5C4ZEqS4s5CR+kS3ks903pKlptV8ajbdgoj/kJlU=; b=uMU03JI/tvsLwH5SqkURAof/pKJwvv+6ppUq4VE/VkwiLKqB1GD5Ot0cdgGgodpnln mvyjWa15c772f0D5iPKmk3dKbuZBhsuLJm1KPei6pu7M3zwj1BBmkybzlrXz2Kqx+3ew VYV6+Dqy5N4C0QwYyuyzraA9G2XC4MMOeZwLATxXeIu76dr+pc13/xBfNRSzyFWlfg7W qQPHLRm9cs0V9F9EcmaMcGjatmeBfGr/Q2dg9uq2VBUgLR87Y7esvpDaL15It5+1gmz9 r/+PRDU1GRIJ34YWGWV/LdHPUhJ2rTHbLFeJ7suG+Jxa5I6a69VFM5mylIOpsABTXVZJ XMNw== X-Gm-Message-State: AOJu0YyBLQGQaMuIIQxdEdhYE/fDfE0nBTB2K54xUyQJWkJar+GM7bqJ e/l/660YIHoSbtrVnjJScpw= X-Google-Smtp-Source: AGHT+IFRFoSDbqYJKsxNi5X+/REx3GXgv8u7DWONh/2lGlsNNNeFb+/GBCxFY+6O21Rwn1g5Y+X3HQ== X-Received: by 2002:a05:600c:2181:b0:40e:4e93:b5c2 with SMTP id e1-20020a05600c218100b0040e4e93b5c2mr2656662wme.263.1705495391565; Wed, 17 Jan 2024 04:43:11 -0800 (PST) Received: from smtpclient.apple (2a01cb00879d2400309c38b342c2bc2c.ipv6.abo.wanadoo.fr. [2a01:cb00:879d:2400:309c:38b3:42c2:bc2c]) by smtp.gmail.com with ESMTPSA id r7-20020a05600c35c700b0040d1bd0e716sm22532349wmq.9.2024.01.17.04.43.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2024 04:43:11 -0800 (PST) From: Otared Kavian Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Date: Wed, 17 Jan 2024 13:43:10 +0100 References: <08D5AFC2-DACC-457D-AC0E-B7A27C57FDB1@gmail.com> <43D1AE82-29FC-4335-94C2-2BE4DF5FC810@gmail.com> To: "mickep@gmail.com" , mailing list for ConTeXt users In-Reply-To: Message-Id: <9D9F47F6-05AA-4980-86AD-E07EF1444F11@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.15) Message-ID-Hash: HXZOFHM527E5OCRC7IIW37XXOLGLC6XZ X-Message-ID-Hash: HXZOFHM527E5OCRC7IIW37XXOLGLC6XZ X-MailFrom: otared@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Math alignment issue List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4492344631109714732==" --===============4492344631109714732== Content-Type: multipart/alternative; boundary="Apple-Mail=_CEA916DB-8111-4E53-874B-C44EF73899A5" --Apple-Mail=_CEA916DB-8111-4E53-874B-C44EF73899A5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Mikael, I installed anew the latest version and I get still the same bizarre = result with math alignment. Please can someone on the list typeset the following in order to see = whether the result is correct or not ? %begin 240117-1-bis.tex \definemathsimplealign[alignedcases] [left=3D{\startmathfenced[cases]}, right=3D\stopmathfenced, align=3D{1:right,2:left,3:left}, strut=3Dyes] \setupformula [location=3Dleft] \starttext \samplefile{knuthmath} \startplaceformula \startformula \startalignedcases \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = =3D 0 \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = =3D u_0(x) \NC \mtext{bla bla} \NR \NC u(t,\sigma) \NC =3D 0 \NC = \mtext{bla bla bla bla} \NR \stopalignedcases \stopformula \stopplaceformula \samplefile{knuthmath} \startplaceformula \startformula = \startalign[location=3Dpacked,n=3D2,m=3D2,align=3D{1:right,2:left},fences=3D= cases] \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = =3D 0 \NC \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = =3D u_0(x) \NC \NC \mtext{bla bla} \NR \NC u(t,\sigma) \NC =3D 0 \NC = \NC \mtext{bla bla bla bla} \NR \stopalign \stopformula \stopplaceformula \samplefile{knuthmath} \stoptext % end 240117-1-bis.tex Thanks in advance: Otared > On 17 Jan 2024, at 12:09, Mikael Sundqvist wrote: >=20 > Could your installation be broken? >=20 > /Mikael >=20 > Den ons 17 jan. 2024 11:41Otared Kavian > skrev: > Hi Mikael, >=20 > Actually it seems that the math alignment stuff has been broken even = in version 2023-09-26, since I get also something incorrect, as you can = see in the attached PDF. >=20 > Many thanks for your help: Otared >=20 >=20 >=20 >> On 17 Jan 2024, at 11:06, Mikael Sundqvist > wrote: >>=20 >> Hi, >>=20 >> Then there was a problem with the last update. Maybe there will be a = new upload soon that works better for you. >>=20 >> /Mikael >>=20 >> Den ons 17 jan. 2024 10:37Otared Kavian > skrev: >> Hi Mikael, >>=20 >> Thank you for your reply. When I typeset the example you sent me, = that is >>=20 >> %begin 240117-1-bis.tex >>=20 >> \definemathsimplealign[alignedcases] >> [left=3D{\startmathfenced[cases]}, >> right=3D\stopmathfenced, >> align=3D{1:right,2:left,3:left}, >> strut=3Dyes] >>=20 >> \setupformula >> [location=3Dleft] >>=20 >> \starttext >>=20 >> \samplefile{knuthmath} >>=20 >> \startplaceformula >> \startformula >> \startalignedcases >> \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = =3D 0 \NC \mtext{bla bla bla} \NR >> \NC u(x,0) \NC = =3D u_0(x) \NC \mtext{bla bla} \NR >> \NC u(t,\sigma) \NC =3D 0 \NC = \mtext{bla bla bla bla} \NR >> \stopalignedcases >> \stopformula >> \stopplaceformula >>=20 >> \samplefile{knuthmath} >>=20 >> \startplaceformula >> \startformula >> = \startalign[location=3Dpacked,n=3D2,m=3D2,align=3D{1:right,2:left},fences=3D= cases] >> \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = =3D 0 \NC \NC \mtext{bla bla bla} \NR >> \NC u(x,0) \NC = =3D u_0(x) \NC \NC \mtext{bla bla} \NR >> \NC u(t,\sigma) \NC =3D 0 \NC = \NC \mtext{bla bla bla bla} \NR >> \stopalign >> \stopformula >> \stopplaceformula >>=20 >> \samplefile{knuthmath} >>=20 >> \stoptext >> % end 240117-1-bis.tex >>=20 >> I get something different than the PDF you sent me: the formulas run = into the text just above them, as you can see in the attached PDF. I am = using ConTeXt LMTX version 2024.01.08 on MacOS 11.7.10. I don=E2=80=99t = see what is wrong with my installation=E2=80=A6 >>=20 >> Best regards: Otared >>=20 >>=20 >>=20 >>> On 17 Jan 2024, at 09:47, Mikael Sundqvist > wrote: >>>=20 >>> Hi Otared, >>>=20 >>> I'm not sure how you get that code, since you do not show the = source. >>> =46rom last upload, there is location=3Dpacked for align, so now = that can >>> be used "inline" in formulas. See attached. I hope it helps. >>>=20 >>> Best, Mikael >>>=20 >>> On Tue, Jan 16, 2024 at 9:41=E2=80=AFPM Otared Kavian = > wrote: >>>>=20 >>>> Hi Mickael, >>>>=20 >>>> I wish you a happy new year ! >>>> I apologize for writing you outside the mailing list: this is du = eto the fact that I am attaching two screenshots in order to show the = problem I encounter, and these documents cannot go through the mailing = list. >>>>=20 >>>> In a document written a year and half ago I have the following = definition: >>>>=20 >>>> \definemathmatrix[alignedcases] >>>> [align=3D{right,left,left}, >>>> distance=3D3pt, >>>> left=3D{\left\{}, >>>> right=3D{\right.}, >>>> style=3D\displaystyle] >>>> in order to typeset multi-lines formulas regrouped with a left = brace. This is analogous to math-cases, but I need three columns instead = of two. >>>>=20 >>>> When the alignment in maths changed I changed the above definition = to the following: >>>>=20 >>>> \definemathsimplealign[alignedcases] >>>> [left=3D{\startmathfenced[cases]}, >>>> right=3D\stopmathfenced, >>>> align=3D{1:right,2:left,3:left}, >>>> strut=3Dyes] >>>>=20 >>>>=20 >>>> The result of the typesetting with LMTX in 2022 is shown in the = attached document =C2=AB math-align-2022.pdf =C2=BB, >>>>=20 >>>> But when the same documentis typeset with the latest version from = 2024-01-08, it does not show the formulas correctly, as one can see in = the attached screenshot =C2=AB math-align-2024-01-08.pdf =C2=BB. >>>>=20 >>>> I cannot reproduce the issue on a short document, but since there = have been some changes in the way the math alignment is treated now, I = wonder whether you can help me how to change my definitions accordingly. >>>> In order to let th elist be informed, once the issue may be solved = without the screenshots, I may post a message there. >>>>=20 >>>> Thanks in advance, and best regards: Otared >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>> <240117-1.mkxl><240117-1.pdf> >>=20 >> Otared Kavian >> e-mail: otared@gmail.com >> Phone: +33 6 88 26 70 95 >>=20 >>=20 >>=20 >>=20 >=20 > Otared Kavian > e-mail: otared@gmail.com > Phone: +33 6 88 26 70 95 >=20 >=20 >=20 >=20 Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95 --Apple-Mail=_CEA916DB-8111-4E53-874B-C44EF73899A5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Mikael,

I installed = anew the latest version and I get still the same bizarre result with = math alignment.

Please can someone on the list typeset the following in order = to see whether the result is correct or not ?

%begin = 240117-1-bis.tex

\definemathsimplealign[alignedcases]
= [left=3D{\startmathfenced[cases]},
= right=3D\stopmathfenced,
= align=3D{1:right,2:left,3:left},
= strut=3Dyes]

\setupformula
  = [location=3Dleft]

\starttext

\samplefile{knuthmath}

\startplaceformula
= \startformula
= \startalignedcases
= \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC =3D 0   =    \NC \mtext{bla bla bla}     \NR
= \NC u(x,0)             =                     =   \NC =3D u_0(x) \NC \mtext{bla bla}         = \NR
      \NC u(t,\sigma)   =                     =        \NC =3D 0      \NC \mtext{bla = bla bla bla} \NR
= \stopalignedcases
= \stopformula
\stopplaceformula

\samplefile{knuthmath}

\startplaceformula
= \startformula
= \startalign[location=3Dpacked,n=3D2,m=3D2,align=3D{1:right,2:left},= fences=3Dcases]
\NC u'(t) - = \nabla \cdot (a(x)\nabla u) + Vu \NC =3D 0      \NC \NC = \mtext{bla bla bla}     \NR
= \NC u(x,0)               =                     = \NC =3D u_0(x) \NC \NC \mtext{bla bla}         = \NR
      \NC u(t,\sigma)   =                     =        \NC =3D 0      \NC \NC = \mtext{bla bla bla bla} \NR
= \stopalign
\stopformula
\stopplaceformula

\samplefile{knuthmath}

\stoptext
% end 240117-1-bis.tex

Thanks in advance: Otared


On 17 Jan 2024, at 12:09, Mikael Sundqvist = <mickep@gmail.com> wrote:

Could your installation be broken?

/Mikael

Den ons 17 = jan. 2024 11:41Otared Kavian <otared@gmail.com> skrev:
Hi = Mikael,

Actually it = seems that the math alignment stuff has been broken even in version = 2023-09-26, since I get also something incorrect, as you can see in the = attached PDF.

Many thanks for your help: Otared



On 17 = Jan 2024, at 11:06, Mikael Sundqvist <mickep@gmail.com> wrote:

Hi,

Then there = was a problem with the last update. Maybe there will be a new upload = soon that works better for you.

/Mikael

Den ons 17 jan. 2024 10:37Otared Kavian <otared@gmail.com> skrev:
Hi = Mikael,

Thank you = for your reply. When I typeset the example you sent me, that = is

%begin = 240117-1-bis.tex

\definemathsimplealign[alignedcases]
= [left=3D{\startmathfenced[cases]},
= right=3D\stopmathfenced,
= align=3D{1:right,2:left,3:left},
= strut=3Dyes]

\setupformula
  = [location=3Dleft]

\starttext

\samplefile{knuthmath}

\startplaceformula
= \startformula
= \startalignedcases
= \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC =3D 0   =    \NC \mtext{bla bla bla}     \NR
= \NC u(x,0)               =                     = \NC =3D u_0(x) \NC \mtext{bla bla}         = \NR
      \NC u(t,\sigma)   =                     =        \NC =3D 0      \NC \mtext{bla = bla bla bla} \NR
\stopalignedcases
= \stopformula
\stopplaceformula

\samplefile{knuthmath}

\startplaceformula
= \startformula
= \startalign[location=3Dpacked,n=3D2,m=3D2,align=3D{1:right,2:left},= fences=3Dcases]
\NC u'(t) - \nabla \cdot = (a(x)\nabla u) + Vu \NC =3D 0      \NC \NC \mtext{bla bla = bla}     \NR
= \NC u(x,0)               =                     = \NC =3D u_0(x) \NC \NC \mtext{bla bla}         = \NR
      \NC u(t,\sigma)   =                     =        \NC =3D 0      \NC \NC = \mtext{bla bla bla bla} \NR
= \stopalign
= \stopformula
\stopplaceformula

\samplefile{knuthmath}

\stoptext
% end = 240117-1-bis.tex

I get something different than the PDF you sent me: the = formulas run into the text just above them, as you can see in the = attached PDF. I am using ConTeXt LMTX version 2024.01.08 on MacOS = 11.7.10. I don=E2=80=99t see what is wrong with my = installation=E2=80=A6

Best regards: Otared



On 17 Jan 2024, at 09:47, Mikael Sundqvist = <mickep@gmail.com> wrote:

Hi Otared,

I'm not sure how you get that code, since you do not show the = source.
=46rom last upload, there is location=3Dpacked for = align, so now that can
be used "inline" in formulas. See = attached. I hope it helps.

Best, Mikael

On Tue, Jan 16, 2024 at 9:41=E2=80=AFPM Otared = Kavian <otared@gmail.com> = wrote:

Hi Mickael,

I wish you a happy = new year !
I apologize for writing you outside the mailing = list: this is du eto the fact that I am attaching two screenshots in = order to show the problem I encounter, and these documents cannot go = through the mailing list.

In a document = written a year and half ago I have the following definition:

\definemathmatrix[alignedcases]
[align=3D{right,left,left},
distance=3D3pt,
left=3D{\left\{},
right=3D{\right.},
style=3D\displaystyle]
in order to typeset = multi-lines formulas regrouped with a left brace. This is analogous to = math-cases, but I need three columns instead of two.

When the alignment in maths changed I changed the above = definition to the following:

\definemathsimplealign[alignedcases]
[left=3D{\startmathfenced[cases]},
right=3D\stopmathfenced,
align=3D{1:right,2:left,3:left},
strut=3Dyes]


The result of the typesetting = with LMTX in 2022 is shown in the attached document =C2=AB = math-align-2022.pdf =C2=BB,

But when the = same documentis  typeset with the latest version from 2024-01-08, = it does not show the formulas correctly, as one can see in the attached = screenshot =C2=AB math-align-2024-01-08.pdf =C2=BB.

I cannot reproduce the issue on a short document, but since = there have been some changes in the way the math alignment is treated = now, I wonder whether you can help me how to change my definitions = accordingly.
In order to let th elist be informed, once = the issue may be solved without the screenshots, I may post a message = there.

Thanks in advance, and best regards: = Otared





<240117-1.mkxl><240117-1.pdf>

Otared Kavian
Phone: +33 6 88 26 70 95





Otared = Kavian
Phone: +33 6 88 26 70 = 95





Otared Kavian
Phone: +33 6 88 26 70 95




= --Apple-Mail=_CEA916DB-8111-4E53-874B-C44EF73899A5-- --===============4492344631109714732== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________ --===============4492344631109714732==--