ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mehdi Omidali <mehdioa@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: alignment explanation
Date: Mon, 15 Mar 2010 21:20:18 +0330	[thread overview]
Message-ID: <4B9E735A.2050509@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1003151236400.19859@ybpnyubfg.ybpnyqbznva>

On 3/15/2010 8:10 PM, Aditya Mahajan wrote:
> On Mon, 15 Mar 2010, Mehdi Omidali wrote:
>
>    
>
> ConTeXt does not support that directly, but you can fake it.
>
> \def\NRtag{&\global\let\doalignNC\dodoalignNC\doalignNRtag}%
>
> \def\doalignNRtag[#1]%
>    {#1\crcr}
>
> \starttext
> \placeformula
> \startformula
> \startalign[n=3]
> \NC x^2 + y^2 \NC = z^2 \NC             \NR[eq:1]
> \NC           \NC = w^2 \NC + u^2       \NRtag[\text{(by \in{Equation}[eq:2])}]
> \NC           \NC       \NC + v^2 + r^2 \NR[eq:2]
> \NC           \NC       \NC + v^2 + r^2 \NR[eq:3]
> \NC           \NC = v^2 \NC + r^2       \NR[eq:4]
> \stopalign
> \stopformula
> \stoptext
>
> ConTeXt does support that (see above); but aligning at the + sign makes
> sense only for specific types of equations. In general, using \quad is
> considered good typography. (Imagine what would happen if the first term
> in one of the equations was very big).
>
> Aditya
>    
Thank you. It is perfect now. I think this solution deserve appearing in 
your MyWay manual. In fact, it deserves to be supported directly in MKIV.
Mehdi
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2010-03-15 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-14 21:53 do not understand \xmlindex Hans van der Meer
2010-03-14 22:01 ` alignment explanation Mehdi Omidali
2010-03-14 22:51   ` Aditya Mahajan
2010-03-15  8:32     ` Mehdi Omidali
2010-03-15 16:40       ` Aditya Mahajan
2010-03-15 17:50         ` Mehdi Omidali [this message]
2010-03-15 19:29           ` Aditya Mahajan

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=4B9E735A.2050509@gmail.com \
    --to=mehdioa@gmail.com \
    --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).