ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Math align in mkiv
@ 2011-12-06 21:52 Otared Kavian
  2011-12-07  9:10 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Otared Kavian @ 2011-12-06 21:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Aditya, Hi Hans,

It seems that recently the align environment in mkiv has changed and I get several strange results now. The (not so minimal…) example below results in the folowing two PDFs:

	http://dl.dropbox.com/u/4316076/align-mkii.pdf

	http://dl.dropbox.com/u/4316076/align-mkiv.pdf
As far as I can say the right behaviour is the one in mkii.
Is there a way to get the same result in mkiv by changing some parameters?
(I have movede litlle by little to maths in mkiv and I would like to fix somehow the apparently incorrect behaviour of mkiv…).

Best regards: OK
PS: Here is the source file:
%%% align-mkiv.tex
% defining an alignment structure
\definemathmatrix[alignedcases]
		[align={right,left,left},
		distance=3pt,
		left={\left\{\;},
		right={\right.},
		style=\displaystyle]

\starttext

\startformula
\startalignedcases
\NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi   \NC = 0 \NC \quad \mbox{in }\, (0,\infty)\times \Omega  \NR
\NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR
\NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega \NR
\NC {\partial \psi  \over  \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega. 
\stopalignedcases
\stopformula

\stoptext
%%% end align-mkiv.tex
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Math align in mkiv
  2011-12-06 21:52 Math align in mkiv Otared Kavian
@ 2011-12-07  9:10 ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2011-12-07  9:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Otared Kavian

On 6-12-2011 22:52, Otared Kavian wrote:
> \definemathmatrix[alignedcases]
> 		[align={right,left,left},
> 		distance=3pt,
> 		left={\left\{\;},
> 		right={\right.},
> 		style=\displaystyle]
>
> \starttext
>
> \startformula
> \startalignedcases
> \NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi   \NC = 0 \NC \quad \mbox{in }\, (0,\infty)\times \Omega  \NR
> \NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR
> \NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega \NR
> \NC {\partial \psi  \over  \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega.
> \stopalignedcases
> \stopformula
>
> \stoptext

in math-ali.mkvi line 700 change

   \dosetmatrixcolumn

into

   \doseteqaligncolumn

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Math align in mkiv
  2011-12-07  8:03     ` Paul Menzel
@ 2011-12-07 19:41       ` Otared Kavian
  0 siblings, 0 replies; 5+ messages in thread
From: Otared Kavian @ 2011-12-07 19:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2263 bytes --]

Dear Paul,

Thanks for your attention: as you may have seen, Hans found the fix and after that math align works fine.
As you noticed, the issue was related to what you reported some time ago.

Best regards: OK

On 7 déc. 2011, at 09:03, Paul Menzel wrote:

> Dear Otared,
> 
> 
> Am Mittwoch, den 07.12.2011, 05:11 +0100 schrieb Otared Kavian:
> 
>> Thank you having tested the file I sent.
> 
> did the example work for you with MKIV in the past?
> 
>> As I suspected, your testing confirms that the change or the bug has been introduced in a recent version of ConTeXt mkiv, some time between October and late November.
>> The version I am running is
>> 	ConTeXt  ver: 2011.11.29 23:11 MKIV  fmt: 2011.12.2  int: english/english
> 
> I can also reproduce that behavior using
> 
>        ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: english/english
> 
>> I think at some time in November Hans did some changes in math alignment after someone reported a bug, and Aditya said he wouldn't have time to (or could not) fix it.
> 
> There were two issues and the corresponding messages in the archive
> [1][2]. So if these are related it should work for you using the version
> from November 24th.
> 
> 
> Thanks,
> 
> Paul
> 
> 
> [1] http://www.ntg.nl/pipermail/ntg-context/2011/063428.html
> [2] http://www.ntg.nl/pipermail/ntg-context/2011/063451.html
> <align-mkiv.pdf><align-mkiv.tex>___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

%%%%%%%%%%%%%%%%%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: Otared.Kavian@math.uvsq.fr





[-- Attachment #1.2: Type: text/html, Size: 4882 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Math align in mkiv
  2011-12-07  4:11   ` Math align in mkiv Otared Kavian
@ 2011-12-07  8:03     ` Paul Menzel
  2011-12-07 19:41       ` Otared Kavian
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2011-12-07  8:03 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 1082 bytes --]

Dear Otared,


Am Mittwoch, den 07.12.2011, 05:11 +0100 schrieb Otared Kavian:

> Thank you having tested the file I sent.

did the example work for you with MKIV in the past?

> As I suspected, your testing confirms that the change or the bug has been introduced in a recent version of ConTeXt mkiv, some time between October and late November.
> The version I am running is
> 	ConTeXt  ver: 2011.11.29 23:11 MKIV  fmt: 2011.12.2  int: english/english

I can also reproduce that behavior using

        ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: english/english

> I think at some time in November Hans did some changes in math alignment after someone reported a bug, and Aditya said he wouldn't have time to (or could not) fix it.

There were two issues and the corresponding messages in the archive
[1][2]. So if these are related it should work for you using the version
from November 24th.


Thanks,

Paul


[1] http://www.ntg.nl/pipermail/ntg-context/2011/063428.html
[2] http://www.ntg.nl/pipermail/ntg-context/2011/063451.html

[-- Attachment #1.1.2: align-mkiv.pdf --]
[-- Type: application/pdf, Size: 24994 bytes --]

[-- Attachment #1.1.3: align-mkiv.tex --]
[-- Type: text/x-tex, Size: 803 bytes --]

%%% align-mkiv.tex
% defining an alignment structure
\definemathmatrix[alignedcases]
                [align={right,left,left},
                distance=3pt,
                left={\left\{\;},
                right={\right.},
                style=\displaystyle]

\starttext

\startformula
\startalignedcases
\NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi   \NC = 0 \NC \quad \mbox{in }\, (0,\infty)\times \Omega  \NR
\NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR
\NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega \NR
\NC {\partial \psi  \over  \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega. 
\stopalignedcases
\stopformula

\CONTEXT\ \contextmark\ \contextversion
\stoptext

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Math align in mkiv
  2011-12-07  1:39 ` Math align in mk Jeong Dalyoung
@ 2011-12-07  4:11   ` Otared Kavian
  2011-12-07  8:03     ` Paul Menzel
  0 siblings, 1 reply; 5+ messages in thread
From: Otared Kavian @ 2011-12-07  4:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Dalyoung,

Thank you having tested the file I sent.
As I suspected, your testing confirms that the change or the bug has been introduced in a recent version of ConTeXt mkiv, some time between October and late November.
The version I am running is
	ConTeXt  ver: 2011.11.29 23:11 MKIV  fmt: 2011.12.2  int: english/english

I think at some time in November Hans did some changes in math alignment after someone reported a bug, and Aditya said he wouldn't have time to (or could not) fix it.

Best regards: OK

On 7 déc. 2011, at 02:39, Jeong Dalyoung wrote:

> Dear Otared,
> 
> I run your code and got the output which is as same as in your file align-mkii.pdf 
> I don't know why you got align-mkiv.pdf.
> 
> In my log file, 
> 
> ConTeXt  ver: 2011.10.08 11:42 MKIV  fmt: 2011.10.12  int: english/english
> ...
> mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051908 (rev 4277)
> 
> Something in your system is different from mine.
> 
> I am sorry that I couldn't give you a solution.
> 
> Best regards,
> 
> Dalyoung
> 
>> Best regards: OK
>> PS: Here is the source file:
>> %%% align-mkiv.tex
>> % defining an alignment structure
>> \definemathmatrix[alignedcases]
>> 		[align={right,left,left},
>> 		distance=3pt,
>> 		left={\left\{\;},
>> 		right={\right.},
>> 		style=\displaystyle]
>> 
>> \starttext
>> 
>> \startformula
>> \startalignedcases
>> \NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi   \NC = 0 \NC \quad \mbox{in }\, (0,\infty)\times \Omega  \NR
>> \NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR
>> \NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega \NR
>> \NC {\partial \psi  \over  \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega. 
>> \stopalignedcases
>> \stopformula
>> 
>> \stoptext
>> %%% end align-mkiv.tex
> 
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

%%%%%%%%%%%%%%%%%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: Otared.Kavian@math.uvsq.fr




___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-07 19:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-06 21:52 Math align in mkiv Otared Kavian
2011-12-07  9:10 ` Hans Hagen
     [not found] <mailman.1088.1323209404.4232.ntg-context@ntg.nl>
2011-12-07  1:39 ` Math align in mk Jeong Dalyoung
2011-12-07  4:11   ` Math align in mkiv Otared Kavian
2011-12-07  8:03     ` Paul Menzel
2011-12-07 19:41       ` Otared Kavian

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).