From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \startalign[n=3] don't work properly in MKIV
Date: Mon, 12 Sep 2011 23:17:27 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1109122312280.850@nqv-gnoyrg.tngrjnl.2jver.arg> (raw)
In-Reply-To: <alpine.LNX.2.02.1109081421420.4876@nqv-gnoyrg>
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
___________________________________________________________________________________
prev parent reply other threads:[~2011-09-13 3:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-08 15:43 Hongwen Qiu
2011-09-08 18:22 ` Aditya Mahajan
2011-09-13 3:17 ` Aditya Mahajan [this message]
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=alpine.LNX.2.02.1109122312280.850@nqv-gnoyrg.tngrjnl.2jver.arg \
--to=adityam@umich.edu \
--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).