From: Otared Kavian <otared@gmail.com>
To: "mickep@gmail.com" <mickep@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Math alignment issue
Date: Wed, 17 Jan 2024 13:43:10 +0100 [thread overview]
Message-ID: <9D9F47F6-05AA-4980-86AD-E07EF1444F11@gmail.com> (raw)
In-Reply-To: <CAHy-LL_AooFD_FWCG=urOom8AOLc23Ntm_t+LK-DWAfemF16-A@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 6582 bytes --]
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={\startmathfenced[cases]},
right=\stopmathfenced,
align={1:right,2:left,3:left},
strut=yes]
\setupformula
[location=left]
\starttext
\samplefile{knuthmath}
\startplaceformula
\startformula
\startalignedcases
\NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \mtext{bla bla bla} \NR
\NC u(x,0) \NC = u_0(x) \NC \mtext{bla bla} \NR
\NC u(t,\sigma) \NC = 0 \NC \mtext{bla bla bla bla} \NR
\stopalignedcases
\stopformula
\stopplaceformula
\samplefile{knuthmath}
\startplaceformula
\startformula
\startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases]
\NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \NC \mtext{bla bla bla} \NR
\NC u(x,0) \NC = u_0(x) \NC \NC \mtext{bla bla} \NR
\NC u(t,\sigma) \NC = 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 <mailto: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 <mailto: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 <mailto: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={\startmathfenced[cases]},
>> right=\stopmathfenced,
>> align={1:right,2:left,3:left},
>> strut=yes]
>>
>> \setupformula
>> [location=left]
>>
>> \starttext
>>
>> \samplefile{knuthmath}
>>
>> \startplaceformula
>> \startformula
>> \startalignedcases
>> \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \mtext{bla bla bla} \NR
>> \NC u(x,0) \NC = u_0(x) \NC \mtext{bla bla} \NR
>> \NC u(t,\sigma) \NC = 0 \NC \mtext{bla bla bla bla} \NR
>> \stopalignedcases
>> \stopformula
>> \stopplaceformula
>>
>> \samplefile{knuthmath}
>>
>> \startplaceformula
>> \startformula
>> \startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases]
>> \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \NC \mtext{bla bla bla} \NR
>> \NC u(x,0) \NC = u_0(x) \NC \NC \mtext{bla bla} \NR
>> \NC u(t,\sigma) \NC = 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’t see what is wrong with my installation…
>>
>> Best regards: Otared
>>
>>
>>
>>> On 17 Jan 2024, at 09:47, Mikael Sundqvist <mickep@gmail.com <mailto:mickep@gmail.com>> wrote:
>>>
>>> Hi Otared,
>>>
>>> I'm not sure how you get that code, since you do not show the source.
>>> From last upload, there is location=packed 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 PM Otared Kavian <otared@gmail.com <mailto: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={right,left,left},
>>>> distance=3pt,
>>>> left={\left\{},
>>>> right={\right.},
>>>> style=\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={\startmathfenced[cases]},
>>>> right=\stopmathfenced,
>>>> align={1:right,2:left,3:left},
>>>> strut=yes]
>>>>
>>>>
>>>> The result of the typesetting with LMTX in 2022 is shown in the attached document « math-align-2022.pdf »,
>>>>
>>>> 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 « math-align-2024-01-08.pdf ».
>>>>
>>>> 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
>> e-mail: otared@gmail.com <mailto:otared@gmail.com>
>> Phone: +33 6 88 26 70 95
>>
>>
>>
>>
>
> Otared Kavian
> e-mail: otared@gmail.com <mailto:otared@gmail.com>
> Phone: +33 6 88 26 70 95
>
>
>
>
Otared Kavian
e-mail: otared@gmail.com
Phone: +33 6 88 26 70 95
[-- Attachment #1.2: Type: text/html, Size: 15421 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-01-17 12:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <08D5AFC2-DACC-457D-AC0E-B7A27C57FDB1@gmail.com>
[not found] ` <CAHy-LL9HzV1BfeKHEMj2RxZDdj8o8+CgOM2ux+_R+YNLxh-NOQ@mail.gmail.com>
2024-01-17 9:37 ` Otared Kavian
[not found] ` <CAHy-LL8yAXGdyeeMhBAHDa69w6Sv6kmUWx77+S3FnErcE0VwmQ@mail.gmail.com>
[not found] ` <43D1AE82-29FC-4335-94C2-2BE4DF5FC810@gmail.com>
[not found] ` <CAHy-LL_AooFD_FWCG=urOom8AOLc23Ntm_t+LK-DWAfemF16-A@mail.gmail.com>
2024-01-17 12:43 ` Otared Kavian [this message]
2024-01-17 13:10 ` Jeong Dal via ntg-context
2024-01-17 13:14 ` Otared Kavian
2024-01-17 13:19 ` Mikael Sundqvist
2024-01-17 17:22 ` Otared Kavian
2024-01-18 1:37 ` Jeong Dal via ntg-context
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=9D9F47F6-05AA-4980-86AD-E07EF1444F11@gmail.com \
--to=otared@gmail.com \
--cc=mickep@gmail.com \
--cc=ntg-context@ntg.nl \
/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).