ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Equivalent of alignat of amsmath with context
@ 2019-01-05 11:27 Fabrice Couvreur
  2019-01-05 11:30 ` Wolfgang Schuster
  2019-01-05 15:45 ` Otared Kavian
  0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2019-01-05 11:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

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

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Equivalent of alignat of amsmath with context
  2019-01-05 11:27 Equivalent of alignat of amsmath with context Fabrice Couvreur
@ 2019-01-05 11:30 ` Wolfgang Schuster
  2019-01-05 15:45 ` Otared Kavian
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2019-01-05 11:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur

Fabrice Couvreur schrieb am 05.01.19 um 12:27:
> Hi,
> I'm trying to get the same result for this file compiled with latex.
What is the result you get with LaTeX?

Wolfgang

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Equivalent of alignat of amsmath with context
  2019-01-05 11:27 Equivalent of alignat of amsmath with context Fabrice Couvreur
  2019-01-05 11:30 ` Wolfgang Schuster
@ 2019-01-05 15:45 ` Otared Kavian
  2019-01-05 22:56   ` Fabrice Couvreur
  1 sibling, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2019-01-05 15:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Equivalent of alignat of amsmath with context
  2019-01-05 15:45 ` Otared Kavian
@ 2019-01-05 22:56   ` Fabrice Couvreur
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2019-01-05 22:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-05 22:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-05 11:27 Equivalent of alignat of amsmath with context Fabrice Couvreur
2019-01-05 11:30 ` Wolfgang Schuster
2019-01-05 15:45 ` Otared Kavian
2019-01-05 22:56   ` Fabrice Couvreur

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).