ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "śrīrāma via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: śrīrāma <citturs@gmail.com>
Subject: mathalignment not working (? again ?)
Date: Wed, 02 Mar 2022 07:03:06 +0530	[thread overview]
Message-ID: <4719861.31r3eYUQgx@sreeramtplt> (raw)

Hi,

While setting some rather large set of equations in a document I could not 
achieve proper alignment of columns in mathalignment. Below is a demonstrative 
example:

\starttext
\placeformula
\startformula 
\startmathalignment[n=7,align={right,left,right,left,right,left,right}]
    \NC x_1 \NC + \NC x_2 \NC + \NC 6x_3 \NC = \NC 170, \NR
    \NC 3x_1 \NC - \NC 110x_2 \NC - \NC x_3 \NC = \NC 4, \NR
    \NC 14x_1 \NC + \NC 13x_2 \NC + \NC 10x_3 \NC = \NC 25. \NR
\stopmathalignment
\stopformula

\startformula \startmathalignment[align={left,right}]
    \NC \sin^2 x + \cos^2 x \NC = 1 \NR
    \NC e^{iπ}              \NC = -1 \NR
\stopmathalignment \stopformula
\stoptext

The first example is from the wiki and the second one is just something I wrote 
as an example. Compiling the above, I see that the equations are not aligned 
as requested. There was an earlier discussion on this here:
	https://www.mail-archive.com/ntg-context@ntg.nl/msg97115.html

However, I have:
	mtx-context     | current version: 2022.01.21 20:13
where I have verified that the fix therein is present (in math-ali.mkxl).

Have I gone wrong somewhere ?

Thanks,
Sreeram


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2022-03-02  1:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-02  1:33 śrīrāma via ntg-context [this message]
2022-03-02  7:45 ` Mikael Sundqvist via ntg-context
2022-03-02  9:37   ` śrīrāma 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=4719861.31r3eYUQgx@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@gmail.com \
    /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).