ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startalign[n=3] don't work properly in MKIV
@ 2011-09-08 15:43 Hongwen Qiu
  2011-09-08 18:22 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Hongwen Qiu @ 2011-09-08 15:43 UTC (permalink / raw)
  To: Ntg-context

Hi, the following minimal example works fine in MKII, but the third
columns are not aligned in MKIV

\starttext

\startformula\startalign[n=3]
\NC X \NC = 1 + 2 \NC = 3 \NR
\NC Y \NC = 1 + 2 + 3 \NC = 6 \NR
\NC Z \NC = 1 + 2 + 3 + 4 \NC = 10 \NR
\stopalign\stopformula

\stoptext

Is this a bug or the interface has changed in MKIV?

$ context --version
mtx-context | current version: 2011.09.06 17:46
$ luatex --version
This is LuaTeX, Version beta-0.70.1-2011051918 (rev 4277)
___________________________________________________________________________________
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] 3+ messages in thread

* Re: \startalign[n=3] don't work properly in MKIV
  2011-09-08 15:43 \startalign[n=3] don't work properly in MKIV Hongwen Qiu
@ 2011-09-08 18:22 ` Aditya Mahajan
  2011-09-13  3:17   ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-09-08 18:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 8 Sep 2011, Hongwen Qiu wrote:

> Hi, the following minimal example works fine in MKII, but the third
> columns are not aligned in MKIV
>
> \starttext
>
> \startformula\startalign[n=3]
> \NC X \NC = 1 + 2 \NC = 3 \NR
> \NC Y \NC = 1 + 2 + 3 \NC = 6 \NR
> \NC Z \NC = 1 + 2 + 3 + 4 \NC = 10 \NR
> \stopalign\stopformula
>
> \stoptext
>
> Is this a bug or the interface has changed in MKIV?

This is a bug. I haven't investigated what is causing this.

Aditya
___________________________________________________________________________________
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] 3+ messages in thread

* Re: \startalign[n=3] don't work properly in MKIV
  2011-09-08 18:22 ` Aditya Mahajan
@ 2011-09-13  3:17   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2011-09-13  3:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 8 Sep 2011, Aditya Mahajan wrote:

> On Thu, 8 Sep 2011, Hongwen Qiu wrote:
>
>> Hi, the following minimal example works fine in MKII, but the third
>> columns are not aligned in MKIV
>> 
>> \starttext
>> 
>> \startformula\startalign[n=3]
>> \NC X \NC = 1 + 2 \NC = 3 \NR
>> \NC Y \NC = 1 + 2 + 3 \NC = 6 \NR
>> \NC Z \NC = 1 + 2 + 3 + 4 \NC = 10 \NR
>> \stopalign\stopformula
>> 
>> \stoptext
>> 
>> Is this a bug or the interface has changed in MKIV?
>
> This is a bug. I haven't investigated what is causing this.

As a temporary fix, add this to your style file:

\unprotect
\def\math_alignment_NC_first
   {\dostarttagged\t!mathtablerow\empty
    \dostarttagged\t!mathtablecell\empty
    \glet\math_alignment_NC\math_alignment_NC_rest}
\protect


@Hans, please fix the definition of \math_alignment_NC_first in 
math-ali.mkiv

@@ -164,7 +164,7 @@
  \def\math_alignment_NC_first
    {\dostarttagged\t!mathtablerow\empty
     \dostarttagged\t!mathtablecell\empty
-   \let\NC\math_alignment_NC_rest}
+   \glet\math_alignment_NC\math_alignment_NC_rest}


Aditya
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2011-09-13  3:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08 15:43 \startalign[n=3] don't work properly in MKIV Hongwen Qiu
2011-09-08 18:22 ` Aditya Mahajan
2011-09-13  3:17   ` Aditya Mahajan

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