ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Equivalent of alignat of amsmath with context
Date: Sat, 5 Jan 2019 16:45:14 +0100	[thread overview]
Message-ID: <09CFD279-9340-4487-9F5D-1122C35B7EDF@gmail.com> (raw)
In-Reply-To: <CACyK-eo8YOkbF6GLvS_E+vXHbOXmbCJc3HA5Kk1spUkk9bn0WQ@mail.gmail.com>

Hi Fabrice,

I think you have to use
	 \startalign[n=3,align={left,right}]
and finish the alignment with
	\stopalign

Is this what you are looking for?

\starttext
\startformula
  \startalign[n=3,align={left,right}]
   \NC \qquad \NC\frac{\lvert\overline{AD}\rvert}{\lvert\overline{CD}\rvert} \NC =\frac{\lvert\overline{DC}\rvert}{\lvert\overline{CE'}\rvert}\NR
   \NC \iff \NC  \frac{1}{x}  \NC =\frac{x}{1-x} \NR
   \NC \iff \NC 1-x \NC =x^2 \NR
   \NC \iff \NC 0\NC =x^2+x-1 \NR
  \stopalign
\stopformula
\stoptext

Best regards: OK

> On 5 Jan 2019, at 12:27, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
> 
> Hi,
> I'm trying to get the same result for this file compiled with latex.
> Thanks.
> Fabrice
> 
> \documentclass{article}
> \usepackage{amsmath}
> 
> 
> 
> \begin{document}
> 
> 
> 
> \begin{alignat*}{2}
> &\qquad&
> 
>   
> \frac{\lvert\overline{AD}\rvert}{\lvert\overline{CD}\rvert}
> 
>     
> &=\frac{\lvert\overline{DC}\rvert}{\lvert\overline{CE'}\rvert}\\
> \iff&& \frac{1}{x}&=\frac{x}{1-x}\\
> \iff&& 1-x&=x^2\\
> \iff&& 0&=
> x^2+x-1
> 
> \end{alignat*}
> 
> 
> 
> \end{document}
> 
> \starttext
> \startformula
>   \startmathalignment[n=3]
>    \NC \qquad \NC\frac{\lvert\overline{AD}\rvert}{\lvert\overline{CD}\rvert} \NC =\frac{\lvert\overline{DC}\rvert}{\lvert\overline{CE'}\rvert}\NR
>    \NC \iff \NC  \frac{1}{x}  \NC =\frac{x}{1-x} \NR
>    \NC \iff \NC 1-x \NC =x² \NR
>    \NC \iff \NC 0\NC =x²+x-1 \NR
>   \stopmathalignment
> \stopformula
> \stoptext
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2019-01-05 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-05 11:27 Fabrice Couvreur
2019-01-05 11:30 ` Wolfgang Schuster
2019-01-05 15:45 ` Otared Kavian [this message]
2019-01-05 22:56   ` Fabrice Couvreur

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=09CFD279-9340-4487-9F5D-1122C35B7EDF@gmail.com \
    --to=otared@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).