From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "mickep@gmail.com" <mickep@gmail.com>
Subject: [NTG-context] Re: Math alignment issue
Date: Wed, 17 Jan 2024 10:37:30 +0100 [thread overview]
Message-ID: <FE7D6548-E455-406B-B92A-953A4B274AFB@gmail.com> (raw)
In-Reply-To: <CAHy-LL9HzV1BfeKHEMj2RxZDdj8o8+CgOM2ux+_R+YNLxh-NOQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3754 bytes --]
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> 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> 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
Phone: +33 6 88 26 70 95
[-- Attachment #1.2.1: Type: text/html, Size: 4308 bytes --]
[-- Attachment #1.2.2: 240117-1-bis.pdf --]
[-- Type: application/pdf, Size: 16023 bytes --]
[-- Attachment #1.2.3: Type: text/html, Size: 3804 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 parent reply other threads:[~2024-01-17 9:41 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 [this message]
[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
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=FE7D6548-E455-406B-B92A-953A4B274AFB@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).