[NTG-context] Re: Math alignment issue

2024-01-17 Thread Jeong Dal via ntg-context
Dear Hans,

Thanks for the new upload.
It clears the issue of the math alignment.

Thanks again.

Best regards,

Dalyoung

___
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
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
Hi Mikael,

Thank you so much for your attention and help.
Is there a way to get a working version before Hans does a new upload? Or even 
a temporary patch?
This is because I have to prepare a presentation for next Monday and I have to 
use extensively math align…

Best regards: Otared

> On 17 Jan 2024, at 14:19, Mikael Sundqvist  wrote:
> 
> On Wed, Jan 17, 2024 at 2:16 PM Otared Kavian  wrote:
>> 
>> Dear Dalyoung,
>> 
>> Thank you for testing, which shows that there is a bug somewhere.
>> Mikael who follows the math stuff is aware of the problem, and I guess Hans 
>> will be informed.
>> 
> 
> Since it is working locally here, It will likely be fixed
> automatically with the next upload.
> 
> /Mikael
> ___
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
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
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Mikael Sundqvist
On Wed, Jan 17, 2024 at 2:16 PM Otared Kavian  wrote:
>
> Dear Dalyoung,
>
> Thank you for testing, which shows that there is a bug somewhere.
> Mikael who follows the math stuff is aware of the problem, and I guess Hans 
> will be informed.
>

Since it is working locally here, It will likely be fixed
automatically with the next upload.

/Mikael
___
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
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
Dear Dalyoung,

Thank you for testing, which shows that there is a bug somewhere.
Mikael who follows the math stuff is aware of the problem, and I guess Hans 
will be informed.

Best wishes for 2024: Otared

> On 17 Jan 2024, at 14:10, Jeong Dal via ntg-context  
> wrote:
> 
> Dear Otared,
> 
> I got the same output in which there is an overlap of the formula on the last 
> line of the paragraph.  The following line shows the version of my 
> installation.
> 
> system  > 
> system  > ConTeXt  ver: 2024.01.08 11:23 LMTX  fmt: 2024.1.17  int: 
> english/english
> system  > 
> 
> Best wishes,
> 
> Dalyoung
> ___
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
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
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Jeong Dal via ntg-context
Dear Otared,

I got the same output in which there is an overlap of the formula on the last 
line of the paragraph.  The following line shows the version of my installation.

system  > 
system  > ConTeXt  ver: 2024.01.08 11:23 LMTX  fmt: 2024.1.17  int: 
english/english
system  > 

Best wishes,

Dalyoung
___
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
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
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  wrote:
> 
> Could your installation be broken?
> 
> /Mikael
> 
> Den ons 17 jan. 2024 11:41Otared Kavian  > 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 > > 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 > > 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 >> > 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 >> > 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.
 

[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
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.texI 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

240117-1-bis.pdf
Description: Adobe PDF document
On 17 Jan 2024, at 09:47, Mikael Sundqvist  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 canbe used "inline" in formulas. See attached. I hope it helps.Best, MikaelOn Tue, Jan 16, 2024 at 9:41 PM Otared Kavian  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 Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95

___
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
___