ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@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 23:56:47 +0100	[thread overview]
Message-ID: <CACyK-eqNcGiMSEaQMY-x8+4BfKnSA3PRo__jUS0QJY0w2B82PQ@mail.gmail.com> (raw)
In-Reply-To: <09CFD279-9340-4487-9F5D-1122C35B7EDF@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3029 bytes --]

Hi Wolfgang and OK,

> What is the result you get with LaTeX?
>
>
>

> Is this what you are looking for?
>

This is the expected result, thank you.
Fabrice

Le sam. 5 janv. 2019 à 16:45, Otared Kavian <otared@gmail.com> a écrit :

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

[-- Attachment #1.2: Type: text/html, Size: 5672 bytes --]

[-- Attachment #2: test.png --]
[-- Type: image/png, Size: 35427 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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:[~2019-01-05 22:56 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
2019-01-05 22:56   ` Fabrice Couvreur [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=CACyK-eqNcGiMSEaQMY-x8+4BfKnSA3PRo__jUS0QJY0w2B82PQ@mail.gmail.com \
    --to=fabrice1.couvreur@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).